#include<stdio.h>
int main(void)
{
    int a[300000]={0},n,i,b;
    scanf("%d",&n);
    for(i=2;i<=n;i++)
    {
        scanf("%d",&b);
        a[b]++;
    }
    for(i=1;i<=n;i++)
        printf("%d\n",a[i]);
}
