Spadework 2020. 2. 8. 19:55

* Solved 기준 브론즈3 단순 풀이

n,i = int(input()),1
while n!=1:
	n,i = 3*n+1 if n%2 else n//2, i+1
print(i)