#include <stdio.h>

int main(void) {
  int num;
  scanf("%d",&num);
  int work[num] = {0};
  int i;
  for(i = 0;i < num;++i) {
    int ptr;
    scanf("%d",&ptr);
    work[ptr-1] = work[ptr-1]+1;
  }
  for(i = 0;i < num;++i) {
    if(i < num -1) {
    	printf("%d\n",work[ptr]);
    }
    else {
      printf("%d",work[ptr]);
    }
  }
return 0;
}
    