M=int(input()) XY=[] for m in range(M): x,y=map(int,input().split()) XY.append((x,y)) print("?",0,0) a,b=map(int,input().split()) print("?",1,0) c,d=map(int,input().split()) print("?",0,1) e,f=map(int,input().split()) print("!") for x,y in XY: print(a+(c-a)*x+(e-a)*y,b+(d-b)*x+(f-b)*y)