#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    int N, c;
    int *A;
    int *ans;
    scanf("%d", &N);
    A = (int *)malloc(sizeof(int) * (N - 1));
    ans = (int *)malloc(sizeof(int) * N);
    for (c = 0; c < N; ++c)
    {
        ans[c] = 0;
    }
    for (c = 0; c < N - 1; ++c)
    {
        scanf("%d", A + c);
        ++ans[A[c] - 1];
    }
    for (c = 0; c < N; ++c)
    {
        printf("%d\n", ans[c]);
    }
    return 0;
}