import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    var input = sc.nextInt()
    var hour = input / 3600
    input %= 3600
    var minute = input / 60
    input %= 60
    val second = input

    println("$hour:$minute:$second")
}

