#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using ull = unsigned long long; using PII = pair; using PLL = pair; template ostream& operator<<(ostream& s, const pair& p) { return s << "(" << p.first << ", " << p.second << ")"; } template ostream& operator<<(ostream& s, const vector& v) { s << "["; for (int i = 0; i < v.size(); i++) s << (i == 0 ? "" : ", ") << v[i]; s << "]"; return s; } #define ALL(a) (a).begin(), (a).end() const ll NUM = 1000000000; int main() { ll a, b; cout << 0 << " " << 0 << endl; cin >> a; cout << NUM << " " << NUM << endl; cin >> b; ll y = (NUM + a - b) / 2, x = -y + a; cout << x << " " << y << endl; return 0; }