#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
#include <string.h>

int main(void) {

int N ;
scanf("%d",&N);
int array[N+1];
array[1]=1;

int count[N+1];

memset(count,0,sizeof(count[0])* (N+1));

for (int i = 2;i<=N;i++)
{
    scanf("%d",&array[i]);
    count[array[i]]++;
}
for (int i = 1 ; i<=N;i++)
{
printf("%d\n",count[i]);
}



 return EXIT_SUCCESS;
}

