object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val s = sc.nextInt
    println(toHMS(s))
  }
  def toHMS(timeSec: Int): String = {
    val h = timeSec / (60*60)
    val m = (timeSec - h*60*60) / 60
    val s = timeSec - h*60*60 - m*60
    h + ":" + m + ":" + s 
  }
}