H,W=map(int,input().split()) if H==1 and W==1: print("!",1,1) exit() print("?",1,1) d1=int(input()) assert(d1!=-1) if H==1 or W==1: for i in range(1,H+1): for j in range(1,W+1): if (i-1)*(i-1)+(j-1)*(j-1)==d1: print("!",i,j) exit() print("?",1,W) d2=int(input()) assert(d2!=-1) for i in range(1,H+1): for j in range(1,W+1): if (i-1)*(i-1)+(j-1)*(j-1)==d1 and (i-1)*(i-1)+(j-W)*(j-W)==d2: print("!",i,j)