import scala.io.StdIn._
object Main {
 def main(args :Array[String]) = {
	var mtrl = readInt
	val (hour, sec) = (3600, 60)
	val (i, j, k) = (mtrl/hour, (mtrl%hour)/sec, mtrl%sec)
	println(i+":"+j+":"+k)
 }
}