#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int N;
  getline(cin, str);
  N = stoi(str);
  vector<int> subordinates = vector<int>(N + 1, 0);
  getline(cin, str);
  int len = str.length();
  int idx = 0;
  int start = 0;
  while (start < len) {
    int size = 1;
    while (idx < len && !isspace(str.at(idx++))) ++size;
    int boss = stoi(str.substr(start, size));
    subordinates[boss] += 1;
    start = idx;
  }
  stringstream ss;
  for (int i = 1; i <= N; ++i) {
    ss << subordinates[i] << endl;
  }
  cout << ss.str();
}
