#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { cout << "? 0 0" << endl; int32_t d; cin >> d; vector> cand; for (auto a = 0; a <= 100; ++a) { for (auto b = 0; b <= 100; ++b) { if (a * a + b * b == d) { cand.push_back({a, b}); } } } cout << "? 100 100" << endl; cin >> d; for (auto &&p : cand) { int32_t ta = 100 - p.first, tb = 100 - p.second; if (ta * ta + tb * tb == d) { cout << "! " << p.first << " " << p.second << endl; break; } } return 0; }