#include <stdio.h>

int main() {
	int N;

	scanf("%d", &N);

	int* data;
	int* sum;

	for (int i = 0; i < N - 1;i++) {
		scanf("%d", &data[i]);
		sum[i] = 0;
	}

	for (int i = 0; i < N - 1;i++) {
		int j = data[i];
		sum[j] += 1;
	}

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

	return 0;
}