fun main(args: Array<String>) {
    val list = readLine()!!.split(" ").map(String::toInt)
    var t = list[0]
    val h = (t/3600).toInt()
    t = t - (h * 3600)
    val m = (t/60).toInt()
    t = t - (m * 60)

    println("%d:%d:%d".format(h,m,t))
}
