#include<bits/stdc++.h>

using namespace std;

int main(int argc, char const *argv[])
{
	int N;
	cin >> N;

	int a[N];

	for (int i = 0; i < N - 1; ++i)
	{
		cin >> a[i];
	}

	int ans = 0;

	for (int i = 0; i < N; ++i)
	{
		ans = count(a, a + N - 1, i+1);
		printf("%d\n", ans);
	}
	return 0;
}