import scala.io.StdIn.readInt

object Main{
  def main(args: Array[String]): Unit = {
    val S = readInt
    var h = S / 3600
    var m = (S - h * 3600) / 60
    var s = S - h * 3600 - m * 60
    printf("%d:%d:%d\n", h, m, s)
  }
}