object Main {
  def main (args: Array[String]) {
    val input:Int = scala.io.StdIn.readInt();

    val hour:Int = input/(60*60) 
    val min:Int  = ( input % (60 * 60) ) / 60
    val sec:Int  = input % 60
    println( hour + ":" + min + ":" + sec );
  }
}