const main = input => {
  const [n, ...a] = input.trim().split(/ |\n/).map(e => parseInt(e))
  const r = new Array(n).fill(0)
  const l = a.length
  for (let i = 0; i < l; i++) r[a[i] - 1]++
  return r.join("\n")
}

console.log(main(require('fs').readFileSync('/dev/stdin', 'utf8')));