import java.util._

object Main extends App{
  override def main(args: Array[String]): Unit = {
    val scanner = new Scanner(System.in)
    val s = scanner.nextInt
    println(solve(s))

  }
  def solve(second : Int): String = {
    val h = second / 3600
    val m = (second / 60) % 60
    val s = second % 60
    
    format(h,m,s)
  }
  def format(h: Int, m :Int, s: Int): String = {
    "%d:%d:%d".format(h,m,s)
  }
}