#include <stdio.h>

int main(void)
{
    int N, answer = 0;
    int A[200000] = {0};
    int K[200000] = {0};
    scanf("%d", &N);
    for (int i = 0; i < N-1; i++)
    {
        scanf("%d", &A[i]);
    }

    for (int j = 0; j < N-1; j++)
    {
        K[A[j]-1] ++;
    }

    for (int x = 0; x < N; x++)
    {
        printf("%d\n", K[x]);
    }

    return 0;
}