#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans, count = 0;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n - 1; i++) {
    cin >> arr[i];
  }
  for (int j = 1; j <= n; j++) {
    for (int i = 0; i < n - 1; i++) {
      if (j == arr[i]) count++;
    }
    ans = count;
    cout << ans << endl;
    count = 0;
  }
  return 0;
}
