# -*- coding: utf-8 -*- N=int(input()) ans=1 while 1: ans+=1 if N==1: break else: if ans>=50: ans="No" print(ans) exit() ans+=1 if N%2==0: N//=2 else: N=N*3+1 print(ans)