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

int main (void) {
    int n;

    scanf("%d", &n);

    int a, sum[n];

    int i;
    for ( i=0; i<n; i++ )
        sum[i] = 0;
    for ( i=0; i<n-1; i++ ) {
        scanf("%d", &a);
        sum[a-1]++;
    }

    for ( i=0; i<n; i++ )
        printf("%d\n", sum[i]);
    return EXIT_SUCCESS;
}
