import java.util.Scanner;
import java.util.Arrays;
class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N=sc.nextInt();
    int As[]=new int[N-1];
    int Bs[]=new int[N];
    for (int i=0;i<N-1 ;i++ ) {
      As[i]=sc.nextInt();
    }
    for (int i=0;i<N;i++ ) {
      Bs[i]=0;
    }
    for (int i=0;i<N-1;i++ ) {

      Bs[As[i]-1]++;

    }

    for (int i=0;i<N;i++) {
      System.out.println(Bs[i]);
    }


  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N=sc.nextInt();
    int As[]=new int[N-1];
    int Bs[]=new int[N];
    for (int i=0;i<N-1 ;i++ ) {
      As[i]=sc.nextInt();
    }
    for (int i=0;i<N;i++ ) {
      Bs[i]=0;
    }
    for (int i=0;i<N-1;i++ ) {

      Bs[As[i]-1]++;

    }

    for (int i=0;i<N;i++) {
      System.out.println(Bs[i]);
    }


  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N=sc.nextInt();
    int As[]=new int[N-1];
    int Bs[]=new int[N];
    for (int i=0;i<N-1 ;i++ ) {
      As[i]=sc.nextInt();
    }
    for (int i=0;i<N;i++ ) {
      Bs[i]=0;
    }
    for (int i=0;i<N-1;i++ ) {

      Bs[As[i]-1]++;

    }

    for (int i=0;i<N;i++) {
      System.out.println(Bs[i]);
    }


  } main {
    Scanner sc = new Scanner(System.in);
    int N=sc.nextInt();
    int As[]=new int[N-1];
    int Bs[]=new int[N];
    for (int i=0;i<N-1 ;i++ ) {
      As[i]=sc.nextInt();
    }
    for (int i=0;i<N;i++ ) {
      Bs[i]=0;
    }
    for (int i=0;i<N-1;i++ ) {

      Bs[As[i]-1]++;

    }

    for (int i=0;i<N;i++) {
      System.out.println(Bs[i]);
    }


  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc int As[]=new int[N-1]; As new int[N-1] N-1 N 1 int Bs[]=new int[N]; Bs new int[N] N for (int i=0;i<N-1 ;i++ ) {
      As[i]=sc.nextInt();
    } int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
      As[i]=sc.nextInt();
    } {
      As[i]=sc.nextInt();
    } As[i]=sc.nextInt() As[i] As i sc.nextInt() sc.nextInt sc for (int i=0;i<N;i++ ) {
      Bs[i]=0;
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      Bs[i]=0;
    } {
      Bs[i]=0;
    } Bs[i]=0 Bs[i] Bs i 0 for (int i=0;i<N-1;i++ ) {

      Bs[As[i]-1]++;

    } int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {

      Bs[As[i]-1]++;

    } {

      Bs[As[i]-1]++;

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

      Bs[As[i]-1]++;

    }

    for (int i=0;i<N;i++) {
      System.out.println(Bs[i]);
    }


  }
}
