#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i, N) for (int i = 0; i < N; i++) #define pb push_back typedef long long ll; typedef unsigned long long ull; typedef pair i_i; typedef pair ll_i; typedef pair d_i; typedef pair ll_ll; typedef pair d_d; struct edge { int u, v; ll w; }; int const MOD = 1000000007; ll _MOD = 1000000009; double EPS = 1e-12; int INF = INT_MAX / 2; int main() { cout << 0 << ' ' << 0 << endl; ll d1; cin >> d1; cout << 1000000000 << ' ' << 0 << endl; ll d2; cin >> d2; ll x = (d1 - d2 + 1000000000) / 2; cout << x << ' ' << d1 - x << endl; }