#include int main(void){ int N; int d = 1; int c = 0; scanf("%d", &N); while(N - d > d){ d *= 2; c++; } printf("%d", c + 1); return 0; }