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