import scala.io.StdIn.readInt
object Main {
  def main(args: Array[String]) {
    val inputS = readInt
    val tmp = inputS / 60
    val s = inputS % 60
    val h = tmp / 60
    val m = tmp % 60
    println(s"$h:$m:$s")
  }
}