n=int(input()) cnt=0 ans=n while n!=1: if n%2: n=n*3+1 ans=n else: n//=2 cnt+=1 print(cnt) print(max(4,ans))