#include<stdio.h>
#include <math.h>

int main(void){
    long n;
    scanf("%ld",&n);
    long a[n+1],tmp[n+1];
    for(long i=0;i<=n;i++){
        a[i]=0;
    }
    for(long i=1;i<n;i++){
        scanf("%ld",&tmp[i]);
        a[tmp[i]]+=1;
    }
    for(long i=1;i<=n;i++){
        printf("%ld\n",a[i]);
    }
    return 0;
}