N = int(input()) index = 0 temp = 0 while N > temp: temp = 2 ** index index+=1 print(index - 1)