import java.util.*;
public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    int[] array = new int[N];
    for (int i=1; i<N; i++) {
      int n = sc.nextInt();
      array[n-1] += 1;
    }
    for (int ans : array)
      System.out.println(ans);
  }
} 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[] array = new int[N];
    for (int i=1; i<N; i++) {
      int n = sc.nextInt();
      array[n-1] += 1;
    }
    for (int ans : array)
      System.out.println(ans);
  }
} Main public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    int[] array = new int[N];
    for (int i=1; i<N; i++) {
      int n = sc.nextInt();
      array[n-1] += 1;
    }
    for (int ans : array)
      System.out.println(ans);
  } main {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    int[] array = new int[N];
    for (int i=1; i<N; i++) {
      int n = sc.nextInt();
      array[n-1] += 1;
    }
    for (int ans : array)
      System.out.println(ans);
  } Scanner sc = new Scanner (System.in); sc new Scanner (System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] array = new int[N]; array new int[N] N for (int i=1; i<N; i++) {
      int n = sc.nextInt();
      array[n-1] += 1;
    } int i=1; int i=1; i 1 i<N i N i++ i++ i {
      int n = sc.nextInt();
      array[n-1] += 1;
    } {
      int n = sc.nextInt();
      array[n-1] += 1;
    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc array[n-1] += 1 array[n-1] array n-1 n 1 1 for (int ans : array)
      System.out.println(ans); int ans array System.out.println(ans); System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    int[] array = new int[N];
    for (int i=1; i<N; i++) {
      int n = sc.nextInt();
      array[n-1] += 1;
    }
    for (int ans : array)
      System.out.println(ans);
  }
} public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    int[] array = new int[N];
    for (int i=1; i<N; i++) {
      int n = sc.nextInt();
      array[n-1] += 1;
    }
    for (int ans : array)
      System.out.println(ans);
  }
} Main
import java.util.*;
public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner (System.in);
    int N = sc.nextInt();
    int[] array = new int[N];
    for (int i=1; i<N; i++) {
      int n = sc.nextInt();
      array[n-1] += 1;
    }
    for (int ans : array)
      System.out.println(ans);
  }
}