#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  vector<int>A(N,0);
  vector<int>count(N,0);
  for(int i=0; i<N-1; i++){
    cin >> A.at(i);
    count.at(A.at(i-1))+=1;
  }
  for(int i=0; i<N; i++){
    cout << count.at(i) << endl;
  }
}