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