object Main {
  def main(args: Array[String]) = {

    val pw = new java.io.PrintWriter(System.out)
    val sc = new java.util.Scanner(System.in)
    val S = sc.nextLong
    sc.close()

    pw.println(s"${S / 2} 0 0 2 0 0")

    pw.flush()
  }
}