#include #define rep(i,a,b) for(int i=int(a);i> N; while(N != 1){ if(N & 1){ N++; cnt++; } N /= 2; cnt++; } cout << cnt << endl; }