#include <iostream>
#include <vector>
#include <string>
#include <sstream>

using namespace std;


int main()
{
	// Input
	string str;
	int N;
	getline(cin, str);
	N = stoi(str);
	vector<int> subordinates = vector<int>(N + 1, 0);
	getline(cin, str);

	// Parse
	int len = str.length();
	int idx = 0;
	int start = 0;
	while (start < len)
	{
		int size = 1;
		while (idx < len && !isspace(str.at(idx++))) ++size;
		int boss = stoi(str.substr(start, size));
		subordinates[boss] += 1;
		start = idx;
	}

	// Print
	stringstream ss;
	for (int i = 1; i <= N; ++i)
	{
		ss << subordinates[i] << endl;
	}
	cout << ss.str();
}