def collatx(number):
summznach = number % 2
otv = number
ColVo=0
while otv != 1:
ColVo=ColVo+1
if summznach == 0:
otv = otv / 2
else:
otv = 3 * otv + 1
print (otv)
collatx(129)