l = 1 r = 10 ** 9 + 1 while r - l > 1: pos = (r + l) // 2 print("?", pos) flg = int(input()) if flg: r = pos else: l = pos print(r)