fun main(args: Array<String>) {
    println(timeFromSecond(readLine()!!.toInt()))
}

fun timeFromSecond(second: Int): String {
    val minitSeconds = 60
    val hourSeconds = 60 * 60

    val outputSecond = second % minitSeconds
    val outputMinit = (second % hourSeconds) / minitSeconds
    val outputHour = second / hourSeconds

    return "$outputHour:$outputMinit:$outputSecond"
}
