#include <bits/stdc++.h>
#define ll long long int
#define MOD 1000000007
#define INF 1e18
#define N 200001

using namespace std;
vector<vector<ll>> a;

int main(void){
  ll n;
  cin >> n;
  
  a = vector<vector<ll>>(n, vector<ll>(0));
  for (int i = 0; i < n-1; i++){
    ll b;
    cin >> b;
    
    b--;
    a[b].emplace_back(i);
  }

  for (int i = 0; i < n; i++){
    cout << a[i].size() << endl;
  }
  

  return 0;
}
