#include<bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; int k = log2(n); cout << k << endl; return 0; }