import scala.io.StdIn.readLine

object Main {
  def main(args: Array[String]) {
    val input = readLine().toInt
    val hours = input / 60 / 60
    val minutes = input / 60 % 60
    val seconds = input % 60

    println(s"$hours:$minutes:$seconds")
  }
}