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

int main(int argc, char const *argv[])
{
    int i, t, n;
    scanf("%d", &n);

    int *sub = (int*)calloc(n, sizeof(int));
    for(i = 0; i < n-1; ++i) {
        scanf("%d", &t);
        sub[t-1]++;
    }
    for(i = 0; i < n; ++i) {
        printf("%d\n", sub[i]);
    }
    return 0;
}
