import scala.io.StdIn

object Main {
  def main(args: Array[String]): Unit = {
    val input = StdIn.readInt()
    val h = input / 3600
    val m = (input%3600)/60
    val s = (input%3600)%60
    println(s"${h}:${m}:${s}")
  }
}
