function Main(input) {
	input = input.split("\n");
	const S = parseInt(input[0])
    console.log(1000000000000000000)
	if(S == 1000000000000000000){
		console.log("0 0 0 1000000000 1000000000 0")
	}else{
		const l = 1000000000
		const a = S % l
		const b = S - a
		const c = l - a
		console.log("0 0 1 1000000000 " + b + " " + c)
	}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));