#include<cstdio>
#include<iostream>
#include<cstring>
#include<string>
#include<utility>
#include<vector>
using namespace std;


int main(){
    int n;
    cin >> n;
    vector<int> boss(n);
    for(int i=0;i<n-1; i++){
        int x;
        cin >> x;
        boss.at(x-1) +=1;
    }

    for(int i=0; i<n; i++){
        cout << boss.at(i) << endl;
    }
}