import scala.io.StdIn

/**
  * AOJ
  */
object Main {

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

    val sec = StdIn.readInt()
    println((sec / 3600) + ":" + (sec % 3600 / 60) + ":" + (sec % 60))
  }
}