/**
  * Created by ??\??? on 2016/12/7.
  */
object Main{
    def main(args: Array[String]): Unit = {
        val T = Console.readLine().toInt
        val h = T/3600
        val m = T%3600/60
        val s = T%3600%60
        Console.println(h+":"+m+":"+s)
    }
}