// a program which reads integer S and convert it to h:m:s where h, m, s denote hours, minutes which is less than 60, and seconds which is less than 60 respectively
import java.util.Scanner

fun main(args:Array<String>){
  var S:Int
  var h:Int
  var m:Int
  var s:Int
  val sPerH = 3600                // 3600 seconds per hour
  val sPerM = 60                  // 60 seconds per minute
  val read = Scanner(System.`in`)

  // read integer S
  S = read.nextInt()

  // convert S to hours, minutes, and seconds
  h = S/(sPerH)
  m = (S-h*sPerH)/sPerM
  s = (S-h*sPerH-m*sPerM)

  print(h.toString() + ":")
  print(m.toString() + ":")
  println(s.toString())
}

