fun main(args: Array<String>) {
    val S = nextLong()
    val x1 = 0L
    val y1 = 0L
    val x2 = 1000000000L
    val y2 = 1L
    val x3 = (x2 - S % x2) % x2
    val y3 = (S + x3) / x2
    println("${x1} ${y1} ${x2} ${y2} ${x3} ${y3}")
}
fun next() = readLine()!!
fun nextLong() = next().toLong()