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