#include using namespace std; int main() { long n; long b = 1; int count = 0; // 標準入力から、空白や改行で区切られた整数と文字列を読み込む。 cin >> n; while(n > 1){ n = (n+1)/2; count++; } cout << count << endl; // 整数と文字列を空白で区切って、標準出力に書き出す。 return 0; }