import scala.io.StdIn

object Main {
  def main(args: Array[String]){
    // val input = StdIn.readLine().map(_.toInt)
    val time = StdIn.readInt()
    val hour = time / 3600
    val min = (time % 3600) / 60
    val sec = time % 60
    println(s"$hour:$min:$sec")
  }
}
