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