#include using namespace std; const int LIM = 1000000000; int main() { cin.tie(0); ios::sync_with_stdio(false); cout << 0 << " " << 0 << endl; int d1; cin >> d1; if (d1 == 0) return 0; cout << 0 << " " << LIM << endl; int d2; cin >> d2; if (d2 == 0) return 0; cout << LIM << " " << 0 << endl; int d3; cin >> d3; if (d3 == 0) return 0; int ay = (d1 - d2 + LIM) / 2; int ax = (d1 - d3 + LIM) / 2; cout << ax << " " << ay << endl; return 0; }