const Main = input => {
  const sp = input.split('\n');
  const N = Number(sp[0]);
  const A_list = sp[1].split(' ').map(e => Number(e));

  const list = new Array(N).fill(0);

  for(let i=0; i<A_list.length; i++) list[A_list[i]-1]++;

  console.log(list.join('\n'));
};

Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
/*Main(`5
1 1 2 2`);
Main(`10
1 1 1 1 1 1 1 1 1`)
Main(`7
1 2 3 4 5 6`)*/
