#include using namespace std; int main() { int n, ans = 0; bool onemore = false; cin >> n; for (;n > 1; n >>= 1) { ans++; if (n % 2 == 1) onemore = true; } if (onemore) ans++; cout << ans << endl; return 0; }