很像Codeforces div.2 B or C 难度的题
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int work(int n) {
if (n == 1) return 1;
else return work(n >> 1) + 1;
}
int main() {
int n;
while (cin >> n) {
int res = work(n);
cout << res << endl;
}
}