#include <bits/stdc++.h>

using namespace std;

#define pii pair<int,int>
#define ll long long
#define s second
#define f first

const int MAX_N=2*10e5+5;
ll n,m,s,a[MAX_N],cnt[MAX_N];

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