(stdin => {
  // Define Function
  // Declare Variable
  const inputs = stdin.toString().trim().split(' ')
  const x = parseInt(inputs[0], 10)
  const hour = Math.floor(x/(60*60))
  const min = Math.floor((x%3600)/60)
  const sec = Math.floor(x%60)
 console.log(`${hour}:${min}:${sec}`)
})(require('fs').readFileSync('/dev/stdin', 'utf8'))

