ok = 1 ng = 10 ** 9 + 1 while ng - ok > 1: m = ok + (ng - ok) // 2 print('?', m) if int(input()) == 1: m = ok else: m = ng print('!', ok)