while True: try: n = int(input()) bi = bin(n) s = str(bi)[2:] s = s.split('0') maxl = 0 for item in s: if item: l = len(item) maxl = max(maxl, l) print(maxl) except: break
while True: try: n = int(input()) bi = bin(n) s = str(bi)[2:] s = s.split('0') maxl = 0 for item in s: if item: l = len(item) maxl = max(maxl, l) print(maxl) except: break