#include int main(void){ int n,k=1,r=0; scanf("%d",&n); if(n == 1){printf("0\n");return 0;} while(k < n){r++;k*=2;} printf("%d\n",r); return 0; }