#include <iostream>
#include <algorithm>
using namespace std;
typedef long long ll;
const int d= 1e9;

int main() {
  ll s; cin >> s;
  ll x, y;
  x = (d-s%d)%d;
  y = (s+x)/d;
  cout << "0 0 1000000000 1 " << x << " " << y << endl;
  return 0;
}
