def produit(a,b): s = 0 while b>0: print(a*b+s) if b%2 == 1: s += a b = b//2 a = a+a return s