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