#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int i, j, k;
  int A[200000];
  int c;
  cin >> N;
  cout << '\n';
  for (i = 2; i <= N; i++) {
    cin >> A[i];
  }
  for (j = 1; j <= N; j++) {
    c = 0;
    for (k = 2; k <= N; k++) {
      if (j == A[k]) c += 1;
    }
    cout << c << '\n';
  }
  return 0;
}
