'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));
  //console.log(jyoushiIDs);

  const jyoushiIDset = new Set(jyoushiIDs);
  const uniqueID = Array.from(jyoushiIDset)
  //console.log(uniqueID);

  let a = new Array(numPeople).fill(0);

  uniqueID.forEach(uid => {
    jyoushiIDs.forEach(id => {
      if(uid === id) {
        a[uid-1]++;
      }
      
    });
  })
  //console.log(a);
  a.forEach(a => console.log(a));
}

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