#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#pragma warning(disable : 4996) //_CRT_SECURE_NO_WARNINGS

int main(void) {
	long n;
	scanf("%ld", &n);
	int* list = (int*)malloc(sizeof(int) * n-1); /*上司の社員番号*/
	int* res = (int*)malloc(sizeof(int) * n);   /*部下の人数*/
	for (int i = 0;i < n-1;i++) scanf("%d", &list[i]);
	for (int k = 0;k < n;k++) res[k] = 0;
	for (int j = 0;j < n-1;j++) res[list[j]] += 1;
	for (int i = 1;i < n;i++) printf("%d\n", res[i]);
	printf("%d", 0);
	return 0;
}