import scala.io.StdIn.readInt

object Main {
  def formatTime(int: Int): Unit = {
    val h: Int = int / 3600
    val m: Int = int % 3600 / 60
    val s: Int = int % 3600 % 60

    println(h+":"+m+":"+s)
  }

  def main(args: Array[String]): Unit = {

    val sec: Int = readInt

    formatTime(sec)
  }
}