OK=1 NG=10**9+1 while NG>OK+1: mid=(OK+NG)//2 print("?",mid,flush=True) x=int(input()) if x==1: OK=mid else: NG=mid print("!",OK,flush=True)