#include using namespace std; using ll = long long; using ull = unsigned long long; #define v(t) vector #define p(t) pair #define p2(t, s) pair #define vp(t) v(p(t)) #define rep(i, n) for (int i=0,i##_len=((int)(n)); i=0; --i) #define rep2r(i, a, n) for (int i=((int)(n)),i##_len=((int)(a)); i>=i##_len; --i) #define repi(itr, c) for (__typeof((c).begin()) itr=(c).begin(); itr!=(c).end(); ++itr) #define repir(itr, c) for (__typeof((c).rbegin()) itr=(c).rbegin(); itr!=(c).rend(); ++itr) #define sz(x) ((int)(x).size()) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define SORT(v, n) sort(v, v+n); #define VSORT(v) sort(v.begin(), v.end()); #define RSORT(x) sort(rall(x)); #define pb push_back #define eb emplace_back #define INF (1e9) #define LINF (1e18) #define PI (acos(-1)) #define EPS (1e-7) #define DEPS (1e-10) int main(){ cout << "? " << 0 << ' ' << 0 << '\n'; cout.flush(); int d = 0; cin >> d; vp(int) a1, a2; rep(a, 51) rep2(b, a, 100) if (a*a+b*b==d) a1.eb(a,b); cout << "? " << a1.front().first << ' ' << a1.front().second << '\n'; cout.flush(); cin >> d; rep(a, 51) rep2(b, a, 100) if (a*a+b*b==d) a2.eb(a,b); p(int) ans = {-1,-1}, pos = a1.front(); rep(i, sz(a1)) { if (a1[i].first==a1.front().first+a2.front().first && a1[i].second==a1.front().second-a2.front().second) ans = a1[i]; if (a1[i].first != a1[i].second) { if (a1[i].first==a1.front().first+a2.front().second && a1[i].second==a1.front().second-a2.front().first) ans = a1[i]; } } cout << "! " << ans.first << ' ' << ans.second << endl; return 0; }