#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
#define All(V) V.begin(), V.end()
typedef long long int ll;
typedef pair<int, int> P;
const ll MOD = 1e9+7, INF = 1e9;

int main()
{
  int n; cin >> n;
  vector<int> ans(n, 0);
  for(int i = 0; i < n-1; i++){
    int a; cin >> a;
    ans[a-1]++;
  }
  rep(i, n)cout << ans[i] << endl;
  cout << endl;
  system("pause");
}
