#include<iostream>
#include<string>

using namespace std;
#define pi 3.141592
int main() {
	int n, x, a[200001] = {};
	cin >> n;

	for (int i = 0; i < n-1; i++) {
		cin >> x;
		a[x]++;
	}
	for (int i = 1; i <= n; i++) {
		cout << a[i] << endl;
	}
}