function main(lines) {
  const input = parseInt(lines, 10)
  const second = parseInt(input%60, 10)
  const minute = parseInt(input/60, 10)%60
  const hour = parseInt(input/(60*60), 10)
  
  console.log(hour + ':' + minute + ':' + second)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
