#include <bits/stdc++.h>
using namespace std;

int main()
{
	int n;
	cin >> n;
	vector<int> ss(n, 0);
	for (int i = 1; i < n; i++)
	{
		int j;
		cin >> j;
		ss[--j]++;
	}
	for (auto&& e : ss)
	{
		cout << e << endl;
	}
}