const main = (inputs) => {
  var N = inputs[0] - 0;
  var array2 = inputs[1].split(" ");
  var sum = new Array(N).fill(0);

  array2.forEach(i => {
    var num = i - 1;
    sum[num] = sum[num] + 1;
  });

  sum.forEach(j => {
    console.log(j);
  });

}
main(require('fs').readFileSync('/dev/stdin', 'UTF-8').trim().split("\n"));