#include <bits/stdc++.h>
using namespace std;
long long int powk(long long int a, long long int n = 2) {
  long long int r = 1;
  for (long long int i = 0; i < n; i++) {
    r *= a;
  }
  return r;
}
int main() {
  long long int n;
  cin >> n;
  vector<long long int> a(n - 1);
  for (long long int i = 0; i < n - 1; i++) {
    cin >> a[i];
  }
  vector<long long int> ans(n);
  for (long long int i = 0; i < n - 1; i++) {
    ans[a[i] - 1]++;
  }
  for (long long int i = 0; i < n; i++) {
    cout << ans[i] << "\n";
  }
  return 0;
}
