#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i < (n + 1); ++i)
using namespace std;
using ll = long long;
const int INF = +100100100;
// typedef pair<int,int> P;
const int MAX = 1000000;

int main(){
    int n;
    cin >> n;
    vector<vector<int>> p(n);
    rep(i,n-1){
        int x;
        cin >> x;
        --x;
        p[x].push_back(1); 
    }
    rep(i,n){
        cout<<p[i].size()<<endl;
    }
    return 0;


}