

object Main {
  def main(args: Array[String]): Unit = {
    val x = readLine toInt
    val h = x / 3600
    val m = (x - (h * 3600)) / 60
    val s = x % 60
    println (h + ":" + m + ":" + s)
  }
}