#include int main(void) { int n[400]; scanf("%d",&n[0]); int max=n[0]; int i; for(i=0;n[i]!=1;i++){ if(n[i]%2!=0){ n[i+1] = 3*n[i]+1; } else{ n[i+1] = n[i]/2; } if(n[i+1]>max){ max=n[i+1];} } printf("%d\n%d\n",i,max); return 0; }