#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
	ll s;
	cin>>s;
	ll x[3]={},y[3]={0,1};
	x[1]=1e9;
	y[2]=(s+x[1]-1)/x[1];
	x[2]=x[1]*y[2];
	x[2]-=s;
	for(int i=0;i<3;++i)
		cout<<x[i]<<" "<<y[i]<<" ";
	return 0;
}