N = int(input()) n = 1 i = 0 p = 0 q = 0 while n < N: p = N // n q = N % n n *= 2 i += 1 if q > n / 2: i += 1 print(i)