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