
object Main {
  def main(args: Array[String]): Unit = {
    val S = io.StdIn.readInt()
    var s = S % 60
    var m = S / 60
    var h = m / 60
    m -= h * 60
    println(h + ":" + m + ":" + s)

  }
}