#include using namespace std; int count(int N, int biscuit_count, int tap_count) { return biscuit_count < N ? count(N, biscuit_count * 2, tap_count + 1) : tap_count; } int main() { int N; cin >> N; cout << count(N, 1, 0) << endl; }