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

ll s;
const int x2 = 1000000000;

int main() {
  scanf("%lld", &s);
  int x = (x2 - s % x2) % x2;
  int y = (s + x) / x2;
  printf("0 0 1000000000 1 %d %d\n", x, y);

}
