#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; int32_t xa, xb; for (auto a = 0; a <= 100; ++a) { for (auto b = 0; b <= 100; ++b) { if (a * a + b * b == d) { xa = a; xb = b; goto next; } } } next: cout << "? " << xa << " " << xb << endl; cin >> d; if (d != 0) swap(xa, xb); cout << "! " << xa << " " << xb << endl; return 0; }