(stdin => {
  // Define Function

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

  const GetMin = S => Math.floor((S % 3600) / 60)

  const GetSec = S => S % 60
  console.log(`${GetHour(S)}:${GetMin(S)}:${GetSec(S)}`)
})(require('fs').readFileSync('/dev/stdin', 'utf8'))

