#include <bits/stdc++.h>
#define int long long
#define f first
#define s second
using namespace std;
int32_t main(){
    if(fopen("input.txt", "r"))
    freopen("input.txt", "r", stdin),
    freopen("output.txt", "w", stdout);
    ios::sync_with_stdio(0),cin.tie(0);
    int n;
    cin >> n;
    int a[n+1]={0};
    for(int i=1;i<n;i++){
        int x;
        cin >> x;
        a[x]++;
    }
    for(int i=1;i<=n;i++)
        cout << a[i] << '\n';
}