#include<stdio.h>
#define MAX 200005

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

