#include<stdio.h>

int main(void)
{
  int N,i,j;
  int c;
  
  scanf("%d", &N);
  int a[N]=0,b[N]=0;
  
  for(i=0;i<N;i++){
    scanf("%d", &a[N]);
    c=a[N]-1;
    b[c]+=1;
  }
  
  for(j=0;j<N;j++){
    printf("%d\n",b[N]);
  }
  
  return 0;
}