import sys sys.setrecursionlimit(10 ** 8) input = sys.stdin.readline def main(): print("? 0 0") N = int(input()) a = -1 b = -1 for i in range(101): for j in range(101): if i ** 2 + j ** 2 == N: a = i b = j if a != -1: break print("?", a, b) N = int(input()) if N == 0: print("!", a, b) else: print("!", b, a) if __name__ == '__main__': main()