#include "bits/stdc++.h"

using namespace std;
using LL = long long;

constexpr int N = 1e5 + 5;

int main() {
	ios::sync_with_stdio(false); cin.tie(nullptr);
	
	int n;
	cin >> n;

	vector< int> ans(n);
	for (int i = 1; i < n; i++) {
		int x;
		cin >> x;
		ans[x - 1]++;
	}

	for (int x : ans) cout << x << "\n";
}