#include #include int main(void){ int n,ans=0,max=1; scanf("%d",&n); while(n>max*2) max *= 2; ans = log2(max) + 1; printf("%d\n",ans); return 0; }