#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long i = 1, sum = 0, count = 0;
  while (sum < n) {
    sum += i;
    i = sum + 1;
    count++;
  }
  cout << count;
  return 0;
}
