#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    long long n,a=0,b=1;
    cin >> n;
    while (1){

        if (b>=n+1) break;
        b=b*2;
         a++;
    }
    cout << a << endl;
}
