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