#include <stdio.h>
#define MAX (2*100000)

int main()
{
  int N;
  int bucket[MAX];
  
  int temp;
  int index;
  for(index = 0; index < MAX; ++index)
    bucket[index] = 0;
  
  scanf("%d", &N);
  for(index = 0; index < N - 1; ++index){
    scanf("%d", &temp);
    ++bucket[temp - 1];
  }
  for(index = 0; index < N; ++index)
    printf("%d\n", bucket[index]);
  
  return 0;
}