import java.util.Scanner

fun main(args: Array<String>){
    val cin = Scanner(System.`in`)
    val x = cin.nextInt()
    val h = x/3600
    val m = (x-h*3600)/60
    val s = x-h*3600-m*60

    println("$h:$m:$s")
}

