#include<bits/stdc++.h>
#define fast ios::sync_with_stdio(false), cin.tie(0);
#define ll long long
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define endl '\n'

using namespace std;

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