def product(x,y):
if x<y:
return product(y,x)
elif y!=0:
return (x+product(x,y-1))
else:
return 0
a=int(input("Enter a:"))
b=int(input("Enter b:"))
print("a*b=",product(a,b))