#include <bits/stdc++.h>
using namespace std;

int main() {
  int64_t a,b,c,d;
  int64_t S;
  cin >>S;
  a=1000000000;
  if( S == a*a){
    b=0;
    c=0;
    d=a;
  }
  else{
    b=a-(S%a);
    c=1;
    d=(S/a)+1;
  }
  cout<<0<<" "<<0<<" "<<a<<" "<<b<<" "<<c<<" "<<d;
}