#include #include #include #include using namespace std; #define rep(i,n) for(int i=0;i> n0; while(n0<1){ if(n0%2==0){ n0/=2; }else{ n0 = 3*n0+1; } ++i1; M = max(n0,M); } cout << i1 << endl << M << endl; }