#include <stdio.h>
int main(void)
{
    int N, num_of_subordinates[2 * 100000] = {0};
    scanf("%i", &N);
    for (int i = 0; i < N - 1; i++)
    {
        int tmp;
        scanf("%i", &tmp);
        num_of_subordinates[tmp - 1] += 1;
    }
    for (int i = 0; i < N; i++)
    {
        printf("%i\n", num_of_subordinates[i]);
    }
}