object Main {
  def main(args: Array[String]): Unit = {
    val in = io.Source.stdin.getLines().next.toInt
    val h = in / (60 * 60)
    val m = (in % (60 * 60)) / 60
    val s = (in % (60 * 60)) % 60
    println(s"${h}:${m}:${s}")
  }
}
