object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val a = sc.nextInt
    println(calc(a))
  }
  def calc(a: Int) = {
    val width  = a.toString
    s"0 0 ${width} 0 1 1"
  }
}