object Main extends App{
  import scala.io.StdIn.readLine;
    val times : Int => List[Int] = (x:Int) => List(x/3600,(x/60)%60,x%60)
    val a = readLine().toInt
    println(times(a).mkString(":"))
}
