#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<string>
#include<cstring>
#include<algorithm>
#include<queue>
#include<map>
#include<set>
typedef long long ll;
const ll longinf=1LL<<60;
using namespace std;


int n,ai;
int a[210000];
int main()
{
    cin>>n;
    for (int i=1; i<=n-1; ++i)
    {
        cin>>ai;
        a[ai]++;
    }
    for (int i=1; i<=n; ++i)
        cout<<a[i]<<endl;
    return 0;
}

