#include <bits/stdc++.h>

#define pb push_back
#define eb emplace_back

typedef long long ll;
typedef unsigned long long ull;

using namespace std;

ll bp(ll a, ll d, ll m) {
    if (d == 0) {
        return 1;
    }
    auto h = bp(a, d / 2, m);
    auto hh = (h * h) % m;
    if (d % 2) {
        hh = (hh * a) % m;
    }
    return hh;
}


void oneCase() {
    int n;
    cin >> n;
    map<int, int> mp;
    for (int i = 1; i <n; ++i) {
        int a;
        cin >> a;
        --a;
        ++mp[a];
    }
    for (int i = 0; i < n; ++i) {
        cout << (mp.count(i) ? mp[i] : 0) << "\n";
    }

}

int main() {
//    std::ios::sync_with_stdio(false);
//    std::cin.tie(nullptr);

    int t = 1;
//    cin >> t;
    while (t--) {
       oneCase();
    }

    return 0;
}
