N=int(input()) c=1 N=[N>>1,N*3+1][N&1] while N^1:c+=1;N=[N>>1,N*3+1][N&1] print(c)