#include<bits/stdc++.h>
#define N 200050
#define ll long long
#define pb push_back
#define x first
#define y second
using namespace std;
int ar[N];
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int n; cin>>n;
    for(int i=0;i<n-1;i++){
        int b; cin>>b;
        ar[b]++;
    }
    for(int i=0;i<n;i++)
    cout<<ar[i+1]<<" ";
    return 0;
}
