#include <stdio.h>

int main(void){
    int i,j,tmp,n,sv[200000];
    n=5;

    scanf("%d",&n);
    for(i=0; i<n-1; i++){
        scanf("%d",&sv[i]);
    }

    for(i=1;i<=n;i++){
        tmp = 0;
        for(j=0;j<n-1;j++){
            if(sv[j] == i) tmp++;
        }
        printf("%d\n",tmp);
    }
    return 0;
}