'use strict';
const main = arg => {
  const input = arg.trim().split('\n');
  const numPeople = parseInt(input[0], 10);
  const jyoushiIDs = input[1].split(' ').map(n => parseInt(n, 10));
 
  let sum = new Array(numPeople).fill(0);

  jyoushiIDs.forEach(id => {
    sum[id-1] += 1;
  });

  sum.forEach(n => console.log(n));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));