#include<stdio.h>
#include<stdlib.h>

int main(){
	int N;
	scanf("%d", &N);
	int *a;
	a = (int *)malloc(sizeof(int)*(N+1));
	int i, b;
	for(i = 0; i < N-1; i++){
		scanf("%d", &b);
		a[b]++;
	}
	for(i = 1; i <= N; i++){
		printf("%d\n", a[i]);
	}
	return 0;
}