#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input int N; cin >> N; // Calculation int p = 1; int ans = 0; while ((p << 1) <= N) { p <<= 1; ++ans; } if (N - p) ++ans; // Output cout << ans << endl; }