n = int(input()) c = len(bin(n-1)[2:]) if n == 1: c = 0 print(c)