#include <stdio.h>
#include <math.h>

int main (void)
{
    unsigned long n, i, m; 
    unsigned long a[200000] = {0};

    scanf("%lu", &n);

    for (i = 1; i < n; i++) {
        scanf("%lu", &m);
        a[m-1]++;
    }

    for (i = 0; i < n; i++) {
        printf("%lu\n", a[i]);
    }

    return 0;
}

