#include using namespace std; int main(){ cout << "? " << 100 << endl; int r1; cin >> r1; if (r1 == 99){ cout << "! " << 99 << ' ' << 100 << endl; } else { cout << "? " << 100 - r1 - 1 << endl; int r2; cin >> r2; int B = r2 + 1; int A = (r1 - 100) % B; if (A < 0){ A += B; } cout << "! " << A << ' ' << B << endl; } }