#include <iostream>
#include <vector>
#define rep(i,n) for(int i=0; i<(n); ++i)
using namespace std;

int n;
vector<int> a;
vector<int> b;

int main(){

  cin >> n;
  a = vector<int>(n-1);
  b = vector<int>(n,0);
  rep(i,n-1) cin >> a[i];

  rep(i,n-1){
    b[a[i]-1]++;
  }

  rep(i,n){
    cout << b[i];
    if(i != n-1) cout << " ";
  }
  cout << endl;

  return 0;
}
