object Main {

    def main(args: Array[String]) = {
        val sc = new java.util.Scanner(System.in)
        val s = sc.nextInt

        println(s/3600 + ":" + (s%3600)/60 + ":" + (s%3600)%60)
    }
}

