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