#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
  #include "settings/debug.cpp"
#else
  #define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;

inline ll dist(ll x1, ll y1, ll x2, ll y2) {
  return (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
}

int main() {
  int h, w;
  cin >> h >> w;
  if (h == 1 && w == 1) {
    cout << "! 1 1" << endl;
    return 0;
  }
  if (h == 1 || w == 1) {
    cout << "? 1 1" << endl;
    int x;
    cin >> x;
    if (h != 1) {
      cout << "! " << x << " 1" << endl;
    }
    else {
      cout << "! 1 " << x << endl;
    }
    return 0;
  }
  ll x, y;
  cout << "? 1 1" << endl;
  cin >> x;
  cout << "? 1 " << w << endl;
  cin >> y;
  for (int i = 1; i <= h; ++i) {
    for (int j = 1; j <= w; ++j) {
      if (dist(i, j, 1, 1) == x && dist(i, j, 1, w) == y) {
        cout << "! " << i << ' ' << j << endl;
        return 0;
      }
    }
  }
  assert(false);
  return 0;
}