fun main(args: Array<String>){
    val sorce = readLine()
    val time = if (sorce==null) 0 else sorce.toInt()
    val h = time/3600
    val m = (time-h*3600)/60
    val s = (time-h*3600-m*60)
    println("${h}:${m}:${s}")
}

