#include int main(void){ int a,max=0; int b; scanf("%d",&a); int count=0; while(1){ if(a==1){break;} if(max<=a){max=a;} if(a%2==0){a=a/2;} else{a=3*a+1;} if(a==1){break;} count++; } printf("%d\n%d\n",count+1,max); return 0; }