#include <bits/stdc++.h>
#define Int int64_t

using namespace std;

int main() {
	Int h = 1e9;
	Int s;
	cin >> s;

	Int x = (h - s % h) % h;
	Int y = (s + x) / h;
	cout << "0 0 1000000000 1 " << x << " " << y << endl;

	return 0;
}
