#include using namespace std; int main(){ int n,m = 0; cin >> n; for(int i = 1; i < n; i *= 2) m++; cout << m << endl; return 0; }