object Main {
??????def main (args: Array[String]) {
??????????val S: Int = scala.io.StdIn.readLine().toInt
??????????val h = S / 3600
??????????val m = (S - h * 3600) / 60
??????????val s = (S - h * 3600 - m * 60)
??????????println( h + ":" + m + ":" + s);
????}
}