#include using namespace std; int main(){ int N; cin >> N; N--; for (int i = 0; i < 30; i++){ if (N>>i) continue; cout << i << endl; return 0; } }