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