#include int main() { int n; scanf("%d", &n); printf("%d\n", 32-__builtin_clz(n-1)); return 0; }