int main(void) 
{
	unsigned int N,A[N],B[N],i;
	scanf("%d", &N);
	for (i = 1; i < N; i++) {
		scanf("%d", &A[i]);
		B[i]=0;
	}
	for (i = 1; i < N; i++) {
		B[A[i]]++;
	}
	for (i =1; i < N; i++) {
		printf("%d\n", B[i]);
	}
    printf("%d",0);

	return 0;
}