n = int(input()) - 1 print(len(bin(n)) - 2 if n else 0)