#include <bits/stdc++.h>

using namespace std;

void solve(){
    long long s,q = 1000000000;
    cin >> s;
    cout << 0 << ' ' << 0 << ' ' << 1 << ' ' << q << ' ' << (s+q-1)/q << ' ' << (q-(s%q))%q << endl;
}

int main(){
    solve();
}
