print("?",0,0);d=int(input());e=[] for x in range(101): for y in range(101): if x*x+y*y==d:e.append([x,y]) print("?",c:=e[0][0],f:=e[0][1]);r=int(input());[print("!",i[0],i[1])for i in e if (i[0]-c)**2+(i[1]-f)**2==r]