object Main extends App {
   val sc = new java.util.Scanner(System.in)
   val a = sc.nextInt
   val h = a / 3600
   val m = (a % 3600) / 60
   val s = a % 60
   val out = h + ":" + m + ":" +s
   println(out)
}

