#include <iostream>
using namespace std;
int multiplic(int m1, int m2){
if(m2==0){
return 0;
}
return m1 + multiplic(m1,m2-1);
}
int main() {
cout << multiplic(3, 5);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG11bHRpcGxpYyhpbnQgbTEsIGludCBtMil7CiAgICBpZihtMj09MCl7CiAgICAgICAgcmV0dXJuIDA7CiAgICB9CiAgICByZXR1cm4gbTEgKyBtdWx0aXBsaWMobTEsbTItMSk7Cn0KCmludCBtYWluKCkgewoJY291dCA8PCBtdWx0aXBsaWMoMywgNSk7CglyZXR1cm4gMDsKfQ==