#include <iostream>
#include <vector>
using namespace std;
int main(void){
    // Your code here!
    int N,i,j,count;
   scanf("%d",&N);
   int A[N-1];
    for(i=0; i<N-1; i++)
        scanf("%d",&A[i]);
    
    for(i=1; i<=N; i++){
        count = 0;
        for(j=0; j<N-1; j++){
            if(i==A[j]) count++;
        }
        printf("%d\n",count);
    }
    return 0;
}

