#include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); const ll MOD = 1000000007; // 1) Query: // A ≡ 0 (mod 10^9+7) ⇒ Y = 0^B = 0 ⇒ K = gcd(X,0) = X ll A = MOD, B = 1; cout << A << " " << B << endl << flush; // 2) Read K = X ll X; if (!(cin >> X)) return 0; // 3) Compute X' = X^A mod B = X^(1e9+7) mod 1 = 0 ll Xp = 0; cout << Xp << endl << flush; // 4) Read verdict (1 = correct, 0 = wrong) int verdict; cin >> verdict; // done return 0; }