#include <bits/stdc++.h>
using namespace std;
const int INF = 2000000000;
void CINT() {}
template <class Head, class... Tail>
void CINT(Head&& head, Tail&&... tail) {
  cin >> head;
  CINT(move(tail)...);
}
void Main() {
  long long b[200010], n;
  cin >> n;
  for (int i = 0; i < int(n - 1); i++) {
    long long a;
    cin >> a;
    b[a]++;
  }
  for (long long idx = 1; idx <= n; idx++) cout << b[idx] << endl;
}
int main() {
  std::cout << std::fixed << std::setprecision(15);
  Main();
}
