#include using namespace std; int N; int main() { cin >> N; N--; int res = 0; while (N > 0) { res++; N >>= 1; } cout << res << endl; return 0; }