#include <bits/stdc++.h>
using namespace std;
int main(void){
  const long k=1e9;
  long s,x,y;
  cin >> s;
  x=(k-s%k)%k;
  y=(s+x)/k;
  cout << "0 0 1000000000 1 " << x << ' ' << y << endl;
  return 0;
}