/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n;
    cin>>n;
    map<int,int> m;
    for(int i=1;i<=n;i++)
    {
        m.insert(pair<int,int>(i,0));
    }
    int f;
    for(int i=1;i<n;i++)
    {
        cin>>f;
        auto itr=m.find(f);
        itr->second++;
    }
    
    for(auto it=m.begin();it!=m.end();it++)
    {
        cout<<it->second<<endl;
    }

    return 0;
}
