import sys l = 0 r = 10 ** 9 + 1 while r - l > 1: pos = (r + l) // 2 print("? %d" % pos) sys.stdout.flush() flg = int(input()) if flg == 1: l = pos else: r = pos print("! %d" % l) sys.stdout.flush()