#include using namespace std; int N; int main() { cin >> N; int a = 0; while (N != 1) { N = N % 2 + N / 2; a++; } cout << a << endl; return 0; }