fun main(args: Array<String>) {
    val hour = 3600
    val minute = 60
    var str = readLine()
    if(str != null) {
        val S = str.toInt()
        val h = S / hour
        val m = (S % hour) / minute
        val s = (S % hour) % minute
        println("$h:$m:$s")
    }
 }
