d = [-1]*(110) for i in range(1, 101): print("?", i) y = int(input()) if d[y] == -1: d[y] = i else: b = i-d[y] print("!",(y-i)%b,b) break