Start: Apr, 17, 2017 10:00:00
Python程序设计基础培训第二次作业
End: Apr, 23, 2017 14:00:00
Time elapsed:
Time remaining:

Problem_ID: B
Result: Accepted
Time: 127ms
Memory: 21432kB
Author: 13967581231
In contest: 1086

x=int(raw_input())
count=0
while x!=1:
	if x%2==0:
		x=x*0.5
		count+=1
	elif x%2==1:
		x=x*3+1
		count+=1
print count