#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[200000];
  for (int i = 0; i < n - 1; i++) {
    cin >> a[i];
  }
  for (int i = 1; i < n + 1; i++) {
    int s = 0;
    for (int j = 0; j < n; j++) {
      if (a[j] == i) {
        s = s + 1;
      }
    }
    cout << s << endl;
  }
}
