#include <bits/stdc++.h>
using namespace std;
int MAX_N = 100;
int main() {
  int N;
  int a[200005] = {0};
  int tmp;
  cin >> N;
  for (int i = 2; i <= N; i++) {
    cin >> tmp;
    a[tmp] += 1;
  }
  for (int i = 1; i <= N; i++) {
    cout << a[i] << endl;
  }
  return 0;
}
