(stdin => {
  // Define Function

  // Declare Variable
  const inputs = stdin.toString().trim().split(' ')
  const x = parseInt(inputs[0], 10)
  const jikan = Math.floor(x/3600)
  const hun = Math.floor((x%3600)/60)
  const byo = Math.floor(x%60)



  console.log(`${jikan}:${hun}:${byo}`)
})(require('fs').readFileSync('/dev/stdin', 'utf8'))
