#include<iostream>

using namespace std;

int main(){
  int workers_num;
  cin >> workers_num;
  int subordinates[workers_num] = {};
  int bosses;
  
  for(int i=0;i < workers_num-1;i++){
    cin >> bosses;
    subordinates[bosses-1]++;
  }
  
  for(int i=0;i < workers_num-1;i++){
    cout << subordinates[i] << endl;
  }
  
  cout << 0;
  return 0;
}
