#include <bits/stdc++.h>

using namespace std;

int main() {
    int n;
    cin >> n;

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

    for (auto x:vt) cout << x << endl;
    return 0;
}
