import scala.io.StdIn

object Main {
  def main(args:Array[String]) {
    val input = StdIn.readLine()
    val rawS = input.toInt
    val s:Int = rawS % 60
    val m:Int = (rawS / 60) % 60
    val h:Int = (rawS / 60) / 60
    println(h + ":" + m + ":" + s)
  }
}