#include<stdio.h>
#define ll long long 
int b[1000100] = {0};
int main(){
    int n;
    scanf("%d",&n);
    int a[n + 1];
    for(int i = 2; i <= n; i++)
        scanf("%d",&a[i]);
    for(int i = 2; i <= n; i++)
        b[a[i]] ++;
    for(int i = 1; i <= n; i++)
        printf("%d\n",b[i]);
    return 0;
}