#include <stdio.h>

int main(void){
    int n,A[1000000],x,i=0,B[1000000],j;

    scanf("%d",&n);

    x=n-1;

    while(x!=0){
        scanf(" %d",&A[i]);
        x--;
        i++;
    }

    x=n-1;

    for(i=1;i<=n;i++){
        for(j=0;j<x;j++){
            if(A[j]==i){
                B[i]++;
            }
        }
    }

    for(i=1;i<=n;i++){
        printf("%d\n",B[i]);
    }

    return 0;
}