#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int b[n];
  int j = 0, k = 1;
  a[0] = 0;
  for (int i = 1; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) b[i] = 0;
  while (1) {
    if (k == n) {
      j += 1;
      k = 1;
    }
    if (a[k] == j + 1) {
      b[j]++;
      k++;
    } else {
      k++;
    }
    if (j == n - 1) break;
  }
  for (int i = 0; i < n; i++) cout << b[i] << endl;
}
