#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) int main() { int x1, x2, y1, y2; x1 = 1; x2 = 6; cout << "? " << x1 << endl; cin >> y1; cout << "? " << x2 << endl; cin >> y2; int a = (y1 - y2) / (x1 - x2); int b = y1 - a * x1; cout << "! " << a << " " << b << endl; return 0; }