#include #include using namespace std; int N; double logarithm; int main(){ scanf("%d", &N); logarithm = log(N) / log(2); printf("%.lf", floor(logarithm)); return 0; }