H=[] cnt=0 while cnt**2<=10**6: H.append(cnt**2) cnt+=1 h,w=map(int,input().split()) if h*w==1: print("!",1,1) exit() print("?",1,1) d1=int(input()) stc=[] for i,j in enumerate(H): if d1-j in H: if 1<=i+1<=h and 1<=H.index(d1-j)+1<=w: stc.append((i+1,H.index(d1-j)+1)) if len(stc)==1: print("!",stc[0][0],stc[0][1]) exit() print("?",h,1) d2=int(input()) stc1=[] for i,j in enumerate(H): if d2-j in H: if 1<=h-i<=h and 1<=H.index(d2-j)+1<=w: stc1.append((h-i,H.index(d2-j)+1)) for a,b in stc1: if (a,b) in stc: print("!",a,b) exit()