#include <iostream>
using namespace std;

long long S;

int main() {
	cin >> S;
	long long A = 1000000000LL;
	long long D = ((S + A - 1) / A);
	long long C = 1LL;
	long long B = A * D - S;

	cout << "0 0 " << A << " " << B << " " << C << " " << D << " " << endl;
	return 0;
}