while True: try: n = bin(int(input())) #print(n) s = str(n).split("0b")[1].split("0") #print(s) w =[] for i in s: if i != "": w.append(int(i)) print(len(str(max(w)))) #print(w) except: break
while True: try: n = bin(int(input())) #print(n) s = str(n).split("0b")[1].split("0") #print(s) w =[] for i in s: if i != "": w.append(int(i)) print(len(str(max(w)))) #print(w) except: break