#include <bits/stdc++.h>
using namespace std;
int n, m;
int a[200005];
int main() {
  for (int i = 0; i <= n; i++) a[i] = 0;
  cin >> n;
  for (int i = 2; i <= n; i++) {
    int x;
    cin >> x;
    a[x]++;
  }
  for (int i = 1; i <= n; i++) {
    cout << a[i];
    if (i != n) cout << endl;
  }
}
