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