#include <stdio.h>

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