#include using namespace std; int main() { int d1, d2; const int lim = 100000; cout << 0 << ' ' << 0 << endl; cin >> d1; cout << 0 << ' ' << lim << endl; cin >> d2; int x = (d1 - d2 + lim) / 2; int y = (d1 + d2 - lim) / 2; cout << x << ' ' << y << endl; return 0; }