v = require('fs').readFileSync('/dev/stdin', 'utf8').replace(/\n/g, ' ').split(' '), arr = [];
for (i = 1; i <= v[0]; i++) arr[i] = 0;
for (i = 2; i <= v.length; i++) arr[parseInt(v[i])]++;
for (i = 1; i < arr.length; i++) console.log(arr[i]);