#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { long n; cin >> n; long l = 0, r = n + 1, co = 0; while (r - l > 1) { long mid = (l + r) / 2; if (mid - l >= r - mid) { r = mid; } else { l = mid; } co++; } cout << co << endl; }