#include #include int main() { int N; scanf("%d",&N); int n = log(N)/log(2); printf("%d\n",log(N)/(n*log(2))==1?n:n+1); return 0; }