S = bin(int(input()))[2:] if list(S).count('1') == 1: print(len(S)) else: print(len(S))