#include #include #include using namespace std; int ruijo(int a, int max, int* pN) { if (a*2 > max) return a; ++ (*pN); return ruijo(a*2, max, pN); } int main(int argc, char**argv) { int n; cin >> n; int num = 0; int max = ruijo(1, n, &num); if (n-max > 0) num ++; cout << num << endl; return 0; }