#include<cstdio>

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