#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); // 1) Send A=1, B=1 long long A = 1, B = 1; cout << A << " " << B << endl; // endl flushes // 2) Read back K = gcd(X, 1) == 1 long long K; if (!(cin >> K)) return 0; // 3) Output our guess X' = X^A mod B = X^1 mod 1 == 0 cout << 0 << endl; // 4) Read the judge's verdict (ret) int ret; cin >> ret; // ret==1 means we succeeded; we can just exit. return 0; }