import sys sys.stdout.flush() x = 0 y = 10 ** 9 while x < y: z = (x + y) // 2 + 1 print('?', z) if input() == '1': x = z else: y = z - 1 print('!', x)