fun main(arr: Array<String>) {
    val s = readLine()!!.toLong()
    val x1 = 0
    val y1 = 0
    val max = 1000000000L
    val y3 = if(s%max==0L) 0 else (max - (s%max))
    val x2 = 1L
    val y2 = max
    val x3 = s/max + Math.min(1, s%max)
    println("$x1 $y1 $x2 $y2 $x3 $y3")

//    println(s)
//    println(Math.abs(x3*y2-x2*y3))
}
