#include <bits/stdc++.h>
using namespace std;
int main() {
  string m, p;
  int n, j;
  int k(0);
  getline(cin, p);
  getline(cin, m);
  n = stoi(p);
  for (int i(1); i <= n; i++) {
    istringstream ss(m);
    do {
      string word;
      ss >> word;
      if (word == to_string(i) && word != "") k += 1;
    } while (ss);
    cout << k << endl;
    k = 0;
  }
}
