#include<stdio.h>
int main(void)
{
	unsigned long int a, b, c;
	unsigned int i;
	unsigned long int A[200000];

	scanf("%ld", &a);

	for (i = 0; i < (a - 1); i++) {
		A[i] = 0;
		scanf("%ld", &b);
		A[b - 1]++;
	}
	A[i] = 0;

	for (i = 0; i < a; i++) {
		printf("%ld\n", A[i]);
	}


	return 0;
}