#include <stdio.h>

typedef struct boss{
  int boss;
  int sub;

}
int main(void){
  
  int n, i;
  boss member[200000] = {0};
  
  scanf("%d", &n);
  
  for(i = 1; i < n; i++){
    scanf("%d", &member[i].boss);
    member[member[i].boss].sub++;
  }
  
  for(i = 0; i < n; i++){
    printf("%d\n",member[i].sub); 
  }
  
  return 0;

}