import sys ma = 10**9 mi = 1 for i in range(30): print("?", (ma + mi) // 2) sys.stdout.flush() fl = int(input()) if fl: mi = (ma + mi) // 2 else: ma = (ma + mi) // 2 print("!",mi)