#include using namespace std; int main() { unsigned int N; std::cin >> N; int a=0; while(N>1) N=(N+1)>>1, a++; std::cout << a << std::endl; }