#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9;
const long long EPS = -1e9;
long long t;
long long n, ans, row, s;
void input() { cin >> n; }
void solution() {
  s = 1;
  ans = 0;
  while (s < n + 1) {
    n -= s;
    s <<= 1;
    ++ans;
  }
  if (n) ++ans;
}
void output() { cout << ans << '\n'; }
signed main(signed argc, char *argv[], char *envp[]) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout.precision(13);
  t = 1;
  while (t--) {
    input();
    solution();
    output();
  }
  return 0;
}
