#include #include #include #include #include #include #include #include #include #include #include #include #define rep(i, n) for(i = 0; i < n; i++) using namespace std; signed main() { int d1, d2; cout << "? " << 0 << " " << 0 << endl; cout.flush(); cin >> d1; cout << "? " << 100 << " " << 100 << endl; cout.flush(); cin >> d2; for (int r = 0; r <= 100; r++) { for (int s = 0; s <= 100; s++) { if (r * r + s * s != d1) continue; if ((100 - r) * (100 - r) + (100 - s) * (100 - s) != d2) continue; cout << "! " << r << " " << s << endl; return 0; } } return 0; }