n = int(input()) total = 1 count = 1 while True: pocket = 2 * total total = pocket count += 1 if total >= n/2: print(count) break else: continue