N = int(input()) count = 0 while N > 1: N = N/2 count = count + 1 print(count)