#include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n;
    cin >> n;
    vector<int> xs(n, 0);
    for (int i = 0; i < n - 1; ++i) {
        int a;
        cin >> a;
        --a;
        ++xs[a];
    }
    for (auto x : xs) {
        cout << x << "\n";
    }
    return 0;
}
