#include<stdio.h>

int main(void){
	int n,i,j;
	scanf("%d", &n);
	int a[200010], b[200010] = { 0 };

	for (i = 2; i <= n;i++) {
		scanf("%d", &a[i]);
	}

	for (i = 0; i < n; i++) {
		for (j = 2; j <= n; j++) {
			if (a[j] == i) {
				b[i-1]+=1;
			}
		}
	}
	
	for(i=0;i<n;i++)
	printf("%d\n", b[i]);

	return 0;
	}