#include <stdio.h>

int main() {

    int N;
    int A[200000];
    int i;
    int loop;
    int answer[200000];
    int count;
    int rest;

    scanf("%d", &N);
    for (loop = 0; loop < N - 1; loop++) {
        scanf("%d", &A[loop]);
        //printf("A[%d] = %d\n", loop, A[loop]);
    }


for (i = 1; i <= N; i++) {
    count = 0;
    for (loop = 0; loop < N - 1; loop++) {
        if(i == A[loop]) count++;
        answer[i - 1] = count;
    }
    printf("%d\n", answer[i - 1]);
}

return 0;

}