#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int main(void){
	int N,*A,a;
	int i;
	char str[10000000];
 
	fgets(str, sizeof(str), stdin);
	N=atoi(strtok(str," "));
	
	A = (int*)calloc(N,sizeof(int));

	fgets(str, sizeof(str), stdin);	
	a=atoi(strtok(str," "))-1;	

	A[a]+=1;
	for(i=1;i<(N-1);i++){
		a=atoi(strtok(NULL," "))-1;
		A[a]+=1;
	}

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

	free(A);

	return 0;
}