import java.util.Scanner

fun main(args: Array<String>) {
    val scan = Scanner(System.`in`)
    val input_data = scan.nextInt()
    val hours = input_data / 3600
    val minites = (input_data % 3600) / 60
    val seconds = (input_data % 3600) % 60
    println("${hours}:${minites}:${seconds}")
}

