#include #include int main(){ int a, c = 0; scanf("%d", &a); while(pow(2, c++) < a/2 + (a%2)); if(a==1) c = 0; printf("%d\n", c); return 0; }