#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  t = 1;
  while (t--) {
    long long int n, x;
    cin >> n;
    long long int a[n + 1];
    for (long long int i = 0; i <= n; i++) {
      a[i] = 0;
    }
    for (long long int i = 0; i < n - 1; i++) {
      cin >> x;
      a[x]++;
    }
    for (long long int i = 1; i <= n; i++) {
      cout << a[i] << " ";
    }
  }
  return 0;
}
