import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int A[] =new int[N];
    int B[] =new int[N];
    for(int j=0;j<N;j++){
      B[j]=0;}
    for(int i=0;i<N-1;i++){
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;}
    for(int k=0;k<N;k++){
      System.out.println(B[k]);}
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int A[] =new int[N];
    int B[] =new int[N];
    for(int j=0;j<N;j++){
      B[j]=0;}
    for(int i=0;i<N-1;i++){
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;}
    for(int k=0;k<N;k++){
      System.out.println(B[k]);}
  }
} Main public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int A[] =new int[N];
    int B[] =new int[N];
    for(int j=0;j<N;j++){
      B[j]=0;}
    for(int i=0;i<N-1;i++){
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;}
    for(int k=0;k<N;k++){
      System.out.println(B[k]);}
  } main {
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int A[] =new int[N];
    int B[] =new int[N];
    for(int j=0;j<N;j++){
      B[j]=0;}
    for(int i=0;i<N-1;i++){
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;}
    for(int k=0;k<N;k++){
      System.out.println(B[k]);}
  } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int N =sc.nextInt(); N sc.nextInt() sc.nextInt sc int A[] =new int[N]; A new int[N] N int B[] =new int[N]; B new int[N] N for(int j=0;j<N;j++){
      B[j]=0;} int j=0; int j=0; j 0 j<N j N j++ j++ j {
      B[j]=0;} {
      B[j]=0;} B[j]=0 B[j] B j 0 for(int i=0;i<N-1;i++){
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;} int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;} {
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;} A[i]=sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc B[A[i]-1]=B[A[i]-1]+1 B[A[i]-1] B A[i]-1 A[i] A i 1 B[A[i]-1]+1 B[A[i]-1] B A[i]-1 A[i] A i 1 1 for(int k=0;k<N;k++){
      System.out.println(B[k]);} int k=0; int k=0; k 0 k<N k N k++ k++ k {
      System.out.println(B[k]);} {
      System.out.println(B[k]);} System.out.println(B[k]) System.out.println System.out System System.out B[k] B k String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int A[] =new int[N];
    int B[] =new int[N];
    for(int j=0;j<N;j++){
      B[j]=0;}
    for(int i=0;i<N-1;i++){
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;}
    for(int k=0;k<N;k++){
      System.out.println(B[k]);}
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int A[] =new int[N];
    int B[] =new int[N];
    for(int j=0;j<N;j++){
      B[j]=0;}
    for(int i=0;i<N-1;i++){
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;}
    for(int k=0;k<N;k++){
      System.out.println(B[k]);}
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int A[] =new int[N];
    int B[] =new int[N];
    for(int j=0;j<N;j++){
      B[j]=0;}
    for(int i=0;i<N-1;i++){
      A[i]=sc.nextInt();
      B[A[i]-1]=B[A[i]-1]+1;}
    for(int k=0;k<N;k++){
      System.out.println(B[k]);}
  }
}