#include <bits/stdc++.h>


using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef double dd;
#define all(v) v.begin(),v.end()
#define endl "\n"
#define clr(n, r) memset(n,r,sizeof(n));

void fast() {
    cin.tie(0);
    cin.sync_with_stdio(0);
}



int main() {
    fast();
    int n;cin>>n;
    int freq[n+3]={0};
    for (int i = 2; i <= n; ++i) {
        int a;cin>>a;
        freq[a]++;
    }
    for (int j = 1; j <= n; ++j) {
        cout<<freq[j]<<endl;
    }
}