#include using namespace std; signed main(){ int n;cin>>n; int mx=n,cnt=0; while(n!=1){ if(n&1)n=n*3+1; else n>>=1; mx=max(mx,n);cnt++; } cout<