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