def question(y): print(f'? {y}') return int(input()) def answer(y): print(f'! {y}') ok = 1 ng = 10**9+1 while ng - ok > 1: x = (ok + ng) // 2 if question(x): ok = x else: ng = x answer(ok)