#include using namespace std; int main () { cout << 0 << ' ' << 0 << endl; int d; cin >> d; if (d <= 100000) { cout << 0 << ' ' << d; int D; cin >> D; cout << D / 2 << ' ' << d - D / 2 << endl; } else { cout << d - 100000 << ' ' << 100000 << endl; int D; cin >> D; cout << d - 100000 + D / 2 << ' ' << 100000 - D / 2 << endl; } return 0; }