(stdin => {

  const I     = v => v
  const K     = v => _ => v
  const join  = sep => array => array.join(sep)
  const split = sep => str => str.split(sep)
  const print = fun => (f, v) => fun(f(v))

  // Define Function
  const getHours = s => Math.floor(s / (60 * 60))
  const getMinutes = s => Math.floor(s % (60 * 60) / 60)
  const getSeconds = s => s % 60

  // Declare Variable
  const inputs = stdin.toString().trim().split('\n')
  const S = parseInt(inputs[0], 10)

  // Main
  const result = [getHours(S), getMinutes(S), getSeconds(S)]

  // Display
  const display = print(console.log)
  display(join(':'), result)

})(require('fs').readFileSync('/dev/stdin', 'utf8'))
