#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count = 0;
  scanf("%d", &n);
  int arr[n];
  int arr1[n - 1];
  for (int i = 0; i < n - 1; i++) {
    scanf("%d", &arr1[i]);
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n - 1; j++) {
      if (arr1[j] == i + 1) {
        count++;
      } else
        continue;
    }
    arr[i] = count;
    count = 0;
  }
  for (int i = 0; i < n; i++) {
    printf("%d\n", arr[i]);
  }
  return 0;
}
