#include "iostream" #include "climits" #include "list" #include "queue" #include "stack" #include "set" #include "functional" #include "algorithm" #include "math.h" #include "utility" #include "string" #include "map" #include "unordered_map" #include "iomanip" #include "random" using namespace std; const long long int MOD = 1000000007; int a, b, c, d; int main() { ios::sync_with_stdio(false); cout << "0 " << "50000\n"; cin >> a; cout << "100000 " << "50000\n"; cin >> b; c = a + b - 100000; c /= 2; if (a > c) { cout << 100000 - b + c << " " << 50000 + c << endl; cout << 100000 - b + c << " " << 50000 - c << endl; } else { cout << 100000 + a + c << " " << 50000 + c << endl; cout << 100000 + a + c << " " << 50000 - c << endl; } return 0; }