#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int n,m,i,c[100005],a,b,v,k,t[100005];
set<int> g[100005];
vector<int>first_half;
vector<int>second_half;
vector<int>total;
int par[209],group[209];
int arra[150000];
vector<int>arr;
map<char,int>cp;
map<int,int>mp;
deque<char>stp1;
deque<char>stp2;
map<int,int>pos;
map<string,int>check;
map<string,string>server;
vector<string>ans1;
vector<string>ans2;
vector<string>ans3;
string server1[1009];
string ip1[1009];
string server2[1009];
string ip2[1009];
ll cashier[109];
ll fir[109];
ll sec[100009];
int main()
{
  	
  ll a,b,c=1,d,e,f,g,h,i,j,k,l,n,s1=1,s2=1,m1=5,m2=15,t,m;
  //cin>>t;
  
  cin>>n;
  for(i=1;i<n;i++)
  {
    cin>>a;
    mp[a]++;	
  }
  for(i=1;i<=n;i++)
    cout<<mp[i]<<'\n';
  
       
  
 
    	
  }
  
  
  
  	