#include<iostream>
using namespace std;

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

	for (int i = 0; i < N; i++) {
		for (int j = 1; j < N; j++) {
			if (a[i] == j)
				b[j-1]++;
		}

	}
	for (int i = 0; i < N; i++)
		cout << b[i] << endl;
	return 0;
}