#include // using namespace std; typedef long long ll; typedef long double ld; using Graph = vector>; template bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template bool chmin(T &a, const T &b) { if (a > b) { a = b; return true; } return false; } #define reps(i, a, n) for (ll i = (a); i < (ll)(n); ++i) #define rep(i, n) reps(i, 0, n) #define rrep(i, n) for (ll i = (ll)(n)-1; i >= 0; i--) #define rreps(i ,a, n) for (ll i = (ll)(n)-1; i >=(ll) a; i--) #define ALL(box) (box).begin(), (box).end() #define all(box) (box).begin(), (box).end() #define RALL(box) (box).rbegin(), (box).rend() #define rall(box) (box).rbegin(), (box).rend() ll inf=((1LL<<62)-(1LL<<31))/15; ll sum = 0; ll num = 0; int pum = 0; ll mum = 0; int min1 = 1000000; int max1 = 0; ll min2 = inf; ll max2 = -inf; ll MOD1 = 1000000007; ll MOD = 998244353; int dx[4] = {0, 1, 0, -1}; int dy[4] = {1, 0, -1, 0}; // 右、下、左、上 int dx8[8] = {0, 1, 1, 1, 0, -1, -1, -1}; int dy8[8] = {1, 1, 0, -1, -1, -1, 0, 1}; // sort(box.rbegin(), box.rend()); // printf("%.7Lf", n); // reverse(t.begin(), t.end()); // unique(box.begin(), box.end()); // auto It = lower_bound(ALL(box), n);以上 4 // auto It = upper_bound(ALL(box), n);含まない上 7 // cout << box.end() - It ; 末尾までの距離 // cout << It - a.begin() ; 先頭までの距離 // auto It =box.upper_bound( k);set,multiset // pqueue < int, vector, greater> q; // priority_queue, greater> pq;//小さい順 // segtree seg(N); // lazy_segtree seg(N); // box.erase(unique(all(box), box.end()); // st.erase(st.find(5)); ll zaatu(vector&A){mapm;for(auto&&x:A)m[x]=0;ll ret = 0;for(auto&&[key,val]:m)val=ret++;for(auto&&x:A)x=m[x];return ret;} ll H,W,K; vector Graph_kyori(const Graph& G,ll first){ ll N=G.size(); vector dist(N,inf); dist[first]=0; queue st; st.push(first); while(!st.empty()){ int a=st.front();st.pop(); for(auto x:G[a]){ if(dist[x]==inf){ dist[x]=dist[a]+1; st.push(x); } } } return dist; } void Query(ll& i,ll& j,ll& Q){ cout <<'?'<<" "<>Q; } ll Euclidean_distance(ll i,ll j,ll i_tmp,ll j_tmp){ return (i-i_tmp)*(i-i_tmp)+(j-j_tmp)*(j-j_tmp); } int main(){ ll H,W; cin>>H>>W; ll I_1,J_1,Q_1;//1回目 ll I_2,J_2,Q_2;//2回目 if(H==1&&W==1) { cout <<"!"<<" "<<1<<" "<<1<