ans=0 for i in reversed(range(500)): print("?",1,2**i) s=input() if s in [">","="]: ans+=2**i print("!",ans)