#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; templateusing V=vector; templateusing VV=V>; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int h,w; cin>>h>>w; if(h==1){ cout<<"? 1 1"<>d1; for(int j=1;j<=w;j++){ if((j-1)*(j-1)==d1){ cout<<"! "<<1<<" "<>d1; for(int i=1;i<=w;i++){ if((i-1)*(i-1)==d1){ cout<<"! "<>d1; cout<<"? 1 2"<>d2; for(int i=1;i<=h;i++){ for(int j=1;j<=w;j++){ if((i-1)*(i-1)+(j-1)*(j-1)==d1 && (i-1)*(i-1)+(j-2)*(j-2)==d2){ cout<<"! "<