object Main {
  def main(args: Array[String]): Unit = {
    val intSec = io.StdIn.readLine().toInt
    val _h = intSec/(60*60)
    val _m = (intSec%(60*60))/(60)
    val _s = intSec%(60)
    println(_h + ":" + _m + ":" + _s)
  }
}