ng=0 ok=10**9 while abs(ok-ng)>1: m=(ok+ng)//2 print(f"? {m}") t=int(input()) if t==1: ng=m-1 else: ok=m print(f"! {ok}")