#include using namespace std; int main () { cout << "? 100" << endl; int a; cin >> a; if (a == 99) { cout << "99 100" << endl; } else { cout << "? " << (100 - a - 1) << endl; int B; cin >> B; B ++; int A = (a - 100 + B * 1000) % B; cout << A << " " << B << endl; } }