fun main(args: Array<String>) {
   val S = readLine()!!.toInt()
   val s = S / 60
   val m = s/ 60
   val ans_s = S % 60
   val ans_m = s % 60
   val ans_h = m % 60
   val ans = listOf(ans_h, ans_m, ans_s)
   println(ans.joinToString(":"))
}
