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