for i in range(30): print(1<<(29-i)) if int(input()): exit()