#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n = 0;
  cin >> n;
  vector<int> ai;
  ai.resize(n - 1);
  vector<int> bi;
  bi.resize(n);
  for (int i = 0; i < n; i++) {
    bi[i] = 0;
  }
  for (int i = 0; i < n - 1; i++) {
    cin >> ai[i];
  }
  for (int i = 0; i < n - 1; i++) {
    bi[ai[i] - 1]++;
  }
  for (int i = 0; i < n; i++) {
    cout << bi[i] << endl;
  }
}
