    #include <stdio.h>

    int main()      /*this code is written by 190042146*/
{
    int N,i;

    scanf("%d", &N);
    int ara[N-1];
    int ara2[N];

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

    for(i=0;i<N-1;i++)
    {
        ara2[ara[i]-1]++;
    }

    for(i=0;i<N-1;i++)
    {
        printf("%d\n",ara2[i]);
    }

    printf("0");


    return 0;
}
