#include<stdio.h>
#include<string.h>
int main()
{
	int i, n, s,t, sum = 0;
	scanf("%d", &n);
	int box[n];
	memset(box, 0, sizeof(box));
	for (i = 0; i < n-1; i++) {
		scanf("%d", &s);
		box[s - 1]++;
	}

	for (i = 0; i < n; i++)
		printf("%d\n", box[i]);
	return 0;
}