print("?", 0) X = int(input()) print("?", 1000) Y = int(input()) for Z in [X, -X]: if abs(1000-Z) == Y: print("!", Z) exit()