h,w = map(int,input().split()) print('?',1,1) d1 = int(input()) print('?',h,w) dn = int(input()) for r in range(h): for c in range(w): if r**2 + c**2 == d1 and (h - r - 1) ** 2 + (w - c - 1) ** 2 == dn: print('?',r+1,c+1) d = int(input()) if d == 0: exit(print('!',r+1,c+1))