fun main(args: Array<String>) {
    val s = readInputLine().toLong()
    
    val y2 = if (s % 1000000000L == 0L) s / 1000000000L else s / 1000000000L + 1L
    val x2 = 1000000000L * y2 - s
    
    println("0 0 1000000000 1 $x2 $y2")
}

fun readInputLine(): String {
    return readLine()!!
}
