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