object Main {
  def main(args: Array[String]) {
    val stdLineInput = io.StdIn.readLine().toInt

    var s = stdLineInput
    val h = java.lang.Math.floor(s / 3600).toInt
    s = s - (h * 3600)
    val m = java.lang.Math.floor(s / 60).toInt
    s = s - (m * 60)

    println(h + ":" + m + ":" + s)
  }
}