import scala.io.StdIn
object Main {
  def main(args:Array[String]):Unit = {
    val sec = StdIn.readLine().toInt
    val h = sec / 3600
    val m = sec % 3600 / 60
    val s = sec % 60
    println(h + ":" + m + ":" + s)
  }
}