#include <stdio.h>
#include <math.h>

int main()
{
	long n,a,cnt,i;
	long *data;

	scanf("%ld", &n);

	if (n < 2 || n > (2 * 1000000)) {
			return 1;
	}

	data = malloc(sizeof(long) * n);

	cnt = n;
	do {
		a = 0;
		scanf("%ld", &a);
		if (a < 1 || a > n) {
			continue;
		}
		data[a]++;		
		cnt--;
		// printf("a = %d\n", a);
	} while (cnt);

	for (i = 0; i < n; i++) {
		if (!data[i]) {
			printf("0\n");
		} else {
			printf("%d\n", data[i]);
		}
	}

	free(data);
	return 0;
}
