#include "stdio.h" int main(){ int n0; int i; int max = 1; scanf("%d", &n0); for(i=1;i > 0;i++){ if(n0 > max){ max = n0; } if(n0%2 == 0){ n0 /= 2; }else{ n0 = 3 * n0 + 1; } if(n0 == 1){ printf("%d\n", i); break; } } printf("%d\n", max); return 0; }