#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  while (cin >> num) {
    int arr[1000], count[100005] = {0};
    for (int i = 0; i < num - 1; i++) {
      cin >> arr[i];
      count[arr[i]]++;
    }
    for (int i = 1; i <= num; i++) {
      cout << count[i] << endl;
    }
    break;
  }
}
