#include <stdio.h>

int main(void){
  int i,j,num,check=0,ans=0;
  int buf[200000];
  scanf("%d",&num);
  for(i=0;i<num-1;i++){
	scanf("%d",&buf[i]);
  }
  
  for(i=0;i<num;i++){
	for(j=0;j<num;j++){
	  check = buf[j]-i-1;
	  if(check==0)
	  ans += 1;
	}
	printf("%d\n",ans);
	ans = 0;
  }
  return 0;
}
