#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;

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

    vector<int> counter(N);
    for (int i = 1; i < N; i++){
        int A;
        cin >> A;
        counter[A-1]++;
    }

    rep(i,N){
        cout << counter[i] << endl;
    }

}