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: 125ms
Memory: 21432kB
Author: 13685812575
In contest: 1086

#!usr/bin/python
# -*- coding:utf-8 -*-

k=0
s=input()
while (s!=1):
    if (s%2==0): 
        s=s/2
    else:
        s=3*s+1
    k=k+1
print k