#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
    ll s;
    cin>>s;
    const int factor=1000000000;
    int x=(factor-s%factor)%factor;
    int y=(s+x)/factor;
    cout<<"0 0 1000000000 1 "<<x<<" "<<y;
    return 0;
}





