fun main(args: Array<String>) {
    val s = readLine()!!.toInt()
    val hours = s / (60 * 60)
    val minutes = (s % (60 * 60)) / 60
    val seconds = s % 60
    println("$hours:$minutes:$seconds")
}

