import scala.io.StdIn

object Main {
  def main(args:Array[String]){
    var n:Int=StdIn.readInt()
    val s:Int=n%60
    val m:Int=(n-s)%3600/60
    val h:Int=(n-s-m)/3600
    println(h+":"+m+":"+s)
  }
}