import scala.io.StdIn._

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