Start: Nov, 12, 2017 10:00:00
2017秋Python程序设计基础培训第二次作业
End: Nov, 19, 2017 12:00:00
Time elapsed:
Time remaining:

Problem_ID: B
Result: Accepted
Time: 108ms
Memory: 24436kB
Author: ajwuzhicheng
In contest: 1122

num=int(input())
count=0
while num!=1:
	if num%2==0:
		num/=2
	else:
		num=3*num+1
	count+=1
print(count)