#include <stdio.h>

int main(void){
  int N,A[500],i,j,k,l,count=0;
  scanf("%d", &N);
  for(i=2;i<N+1;i++){
    scanf("%d", &A[i]);
  }
  for(j=1;j<N+1;j++){
    for(k=j+1;k<N+1;k++){
      if(A[k]==j){
        count++;
      }
    }
    printf("%d \n",count);
    count=0;
  }
  
  return 0;
}