const processData = (lines) => {
  const bosses = lines[1].split(' ').map(x => +x)

  let map = {}
  for(const n of bosses) {
    map[n] = map[n] ? map[n] +1  : 1
  }

  for (let i=1; i<= bosses.length+1; i++) {
    if (map[i]) {
      console.log(map[i])
    } else {
      console.log(0)
    }
  }
}

let i = ''
process.stdin.on('data', c => i += c)
process.stdin.on('end', () => {
  const {EOL} = require('os')
  const lines = i.split(EOL) /*your input text, split by lines*/
  processData(lines)
})
