#include "bits/stdc++.h" using namespace std; #define FOR(i,j,k) for(int (i)=(j);(i)<(int)(k);++(i)) #define rep(i,j) FOR(i,0,j) #define each(x,y) for(auto &(x):(y)) #define mp make_pair #define mt make_tuple #define all(x) (x).begin(),(x).end() #define debug(x) cout<<#x<<": "<<(x)< pii; typedef vector vi; typedef vector vll; void o() { fflush(stdout); } pair q(int x, int y) { printf("? %d %d\n", x, y); o(); ll xx, yy; scanf("%lld%lld", &xx, &yy); return mp(xx, yy); } int main(){ int M; scanf("%d", &M); vi X(M), Y(M); rep(i, M) { scanf("%d%d", &X[i], &Y[i]); } // |a b e| // |c d f| // |0 0 1| ll a, b, c, d, e, f, g, h; tie(e, f) = q(0, 0); tie(a, c) = q(1, 0); tie(b, d) = q(0, 1); a -= e; b -= e; c -= f; d -= f; printf("!\n"); rep(i, M) { ll x = X[i], y = Y[i]; ll xx = a*x + b*y + e, yy = c*x + d*y + f; printf("%lld %lld\n", xx, yy); } o(); }