H, W = map(int, input().split()) print("? 1 1") d = int(input()) kouho = [] for h in range(H): for w in range(W): if h**2 + w**2 == d: kouho.append((h+1, w+1)) if len(kouho) == 1: print(f"! {kouho[0][0]} {kouho[0][1]}") else: print(f"? {H} 1") d2 = int(input()) kouho2 = [] for h, w in kouho: if (H-h)**2 + (w-1)**2 == d2: kouho2.append((h, w)) if len(kouho2) == 1: print(f"! {kouho2[0][0]} {kouho2[0][1]}") print(f"? 1 {W}") d = int(input()) kouho = [] for h, w in kouho2: if (h-1)**2 + (w-W)**2 == d: kouho.append((h, w)) print(f"! {kouho[0][0]} {kouho[0][1]}")