#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N - 1; i++) {
    int tmp;
    cin >> tmp;
    A[tmp - 1]++;
  }
  for (auto&& a : A) {
    cout << a << endl;
  }
  return 0;
}
