function Main(input) {
  input = parseInt(input);
  const val = 1000000000;
  var x = (val - input % val) % val;
  var y = parseInt((input + x) / val);
  console.log("0 0 1000000000 0 " + x + " " + y);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
