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

signed main() {
  int N;
  cin >> N;
  
  vector<int>A(N);
  vector<int>B(N);
  
  for (int i = 0; i < N-1 ; i++){
    cin >> A.at(i);
  }
  
  for (int i = 0; i < N-1; i++){
    B.at(A.at(i)-1) += 1;
  }
  
  for (int i = 0; i < N-1; i++){
    cout << B.at(i) << endl;
  }
  cout << 0 << endl;
  
}
