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