#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;cin>>n;
  vector<int> buka(n);
  for (int i = 1; i < n; i++) {
    int id;cin>>id;
    buka.at(id-1)++;
  }
  for (int howMany : buka) cout << howMany << endl;

}
