object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val s = sc.nextInt
  val h : Int = s / 3600
  val m : Int = (s - h * 3600)/60
  val ss : Int = s % 60
  println(s"$h:$m:$ss")
}
