#include using namespace std; int main() { int dist; cout << "? 0 0" << endl; cin >> dist; for (int i = 0; i < 101; i++) { for (int j = 0; j < 101; j++) { if (i * i + j * j == dist) { cout << '?' << ' ' << i << ' ' << j << endl; cin >> dist; if (dist == 0) { cout << '!' << ' ' << i << ' ' << j << endl; return 0; } else { cout << '!' << ' ' << j << ' ' << i << endl; return 0; } } } } }