print(max([len(i) for i in bin(int(input()))[2:].split("0")]))