import java.util.Scanner;

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

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    int A[] = new int[N];
    A[0] = 0;
    for(int i = 1;i < N;i++){
      A[i] = scanner.nextInt();
    }
    int B[] = new int[N];
    for(int i = 1;i < N;i++){
      B[A[i] - 1]++;
    }
    for(int i = 0;i < N;i++){
      System.out.println(B[i] +  "\n");
    }
  }
}