#include using namespace std; int main() { int N; cin >> N; for (int i = 0;; i++) { if (1 << i >= N) { cout << i << endl; return 0; } } }