#include <bits/stdc++.h>
#include <math.h>
using namespace std;
 
int main() {
  	int N;
  	cin >> N;
  
  	int *A = (int *)malloc(sizeof(int)*N);
    if (A == NULL) {
        printf("Memory cannot be allocated.");
    }
  
	for(int i=1; i<=N-1; i++){
    	cin >> A[i];
    }
  	
  	int *Out = (int *)malloc(sizeof(int)*N);
    if (Out == NULL) {
        printf("Memory cannot be allocated.");
    }
  	for(int i=0;i < N; i++){
		Out[i]=0;
    }
  
  	int num;
  	for(int i=1;i <=N-1; i++){
		num=A[i];
      	Out[num-1]++;
    }
  	for(int i=0;i < N;i++){
    	cout << Out[i] << endl;
    }
}