#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define MIN(a, b) (a<b?a:b)
#define MAX(a, b) (a>b?a:b)


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

    return 0;
}

