#include <stdio.h>

int cnt[200005];

int main(void) 
{
    int n,i; 
    scanf("%d", &n);
    for (i = 1; i < n; i++) 
    {
        int tt; scanf("%d", &tt);
        cnt[tt]++;
    }
    for ( i = 1; i <= n; i++)
        printf("%d\n", cnt[i]);
        return 0;
}
