object Main extends App {
  import scala.io.StdIn.readLine;
  val toTime:(Int) => String = (s:Int) => {
    (s / 3600).toString + ':' + (s % 3600 / 60) + ':' + (s % 60)
  }
  println(toTime(readLine.toInt))
}