#include using namespace std; int main() { int N; cin >> N; int ans = 0; long long num = 1; while (num * 2 <= N) { num *= 2; ans++; } if (num != N) { ans++; } cout << ans; }