import java.util.*
fun main(args: Array<String>){
	val cin = Scanner(System.`in`)
    val s = cin.nextLong()
    val x1: Long = 1000000000

    var y2: Long = s / x1
    if (s % x1 != 0.toLong()) {
        y2 += 1
    }
    val p = x1 * y2 - s

    val x2 = p
    val y1: Long = 1

    print(0)
    print(" ")
    print(0)
    print(" ")
    print(x1)
    print(" ")
    print(y1)
    print(" ")
    print(x2)
    print(" ")
    print(y2)
    println()
}