(stdin => {
  // Define Function
  const hour = v => Math.floor(v / (60 * 60))
  const minute = v => Math.floor((v % (60 * 60)) / 60)
  const Second = v => v % 60

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

  console.log([hour(time), minute(time), Second(time)].join(':'))
})(require('fs').readFileSync('/dev/stdin', 'utf8'))

