#include <stdio.h>

int main()
{
	long n;
	scanf("%ld", &n);
	long a[n];
	long b[n];
	long i = 1;
	long j = 1;
	while (j <= n)
		b[j++] = 0;

	while (i < n)
	{
		scanf("%ld", &a[i]);
		b[a[i]] += 1;
		i++;
	}
	long x  = 1;
	long count = 0;
	while (x <= n)
	{
		printf("%ld\n", b[x]);
		x++;
	}
	return 0;
}
