function main(N, A) {
  const res = [];
  for (let i = 0; i < N; i++) {
    res.push(0);
  }

  for (let i = 0; i < N; ++i) {
    const boss = parseInt(A[i]) - 1;
    res[boss]++;
  }

  console.log(res.join('\n'));
}
const input = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n');
const N = parseInt(input[0]);
const A = input[1].replace('\n').split(' ');
main(N, A);
