#include using namespace std; using ll = long long; using PII = std::pair; using PLL = std::pair; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) #define DEBUG int main() { #ifdef DEBUG cout << "DEBUG MODE" << endl; ifstream in("input.txt"); //for debug cin.rdbuf(in.rdbuf()); //for debug #endif int a, b, d, x, y; cout << 0 << " " << 0 << endl; cin >> d; if(d==0) return 0; a = d; cout << 1000000000 << " " << 0 << endl; cin >> d; if(d==0) return 0; b = d; y = (a + b - x) / 2; x = a - y; cout << x << " " << y << endl; return 0; }