object Main{
    def main(args: Array[String]): Unit ={
        val scanner = new java.util.Scanner(System.in)
        val i = scanner.nextInt()
        val h = i/ 3600
        val hi = i - h*3600
        val m = hi/ 60
        val s = hi - m*60
        System.out.println(h + ":" + m + ":" + s)
    }
}