for x in range(29,-1,-1): print(2**x) r = int(input()) if r == 1: exit()