num = int(input()) list = list(bin(num)[2:]) jo = len(list)-1 if list.count('1') == 1: print(jo) else: print(jo+1)