#include<stdio.h>
#include<stdlib.h>

#define NEW(p,n){p=malloc(n*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}

typedef int*vector;

vector create_vector(int n)
{
  vector v;
  NEW(v,n);
  for(int i=0;i<n;i++){
    v[i]=0;
  }
  return v;
}

int main()
{
  int n;
  scanf("%d",&n);
  vector v=create_vector(n);
  for(int i=0;i<n-1;i++){
    int A;
    scanf("%d",&A);
    v[A-1]+=1;
  }
  for(int i=0;i<n;i++){
    printf("%d\n",v[i]);
  }
  free(v);
  return 0;
}