n = int(input()) a = 0 while n > 1: n /= 2 a += 1 print(a)