import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] list = new int[n - 1];
    int[] results = new int[n];

    for (int i = 0; i < list.length; i++) {
      list[i] = sc.nextInt();
    }
    for (int i = 1; i < results.length; i++) {
      results[i] = 0;
    }

    for (int i = 0; i < list.length; i++) {
      results[(list[i]) - 1]++;
    }
    for (int i = 0; i < results.length; i++) {
      System.out.println(results[i]);
    }
    sc.close();
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] list = new int[n - 1];
    int[] results = new int[n];

    for (int i = 0; i < list.length; i++) {
      list[i] = sc.nextInt();
    }
    for (int i = 1; i < results.length; i++) {
      results[i] = 0;
    }

    for (int i = 0; i < list.length; i++) {
      results[(list[i]) - 1]++;
    }
    for (int i = 0; i < results.length; i++) {
      System.out.println(results[i]);
    }
    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] list = new int[n - 1];
    int[] results = new int[n];

    for (int i = 0; i < list.length; i++) {
      list[i] = sc.nextInt();
    }
    for (int i = 1; i < results.length; i++) {
      results[i] = 0;
    }

    for (int i = 0; i < list.length; i++) {
      results[(list[i]) - 1]++;
    }
    for (int i = 0; i < results.length; i++) {
      System.out.println(results[i]);
    }
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] list = new int[n - 1];
    int[] results = new int[n];

    for (int i = 0; i < list.length; i++) {
      list[i] = sc.nextInt();
    }
    for (int i = 1; i < results.length; i++) {
      results[i] = 0;
    }

    for (int i = 0; i < list.length; i++) {
      results[(list[i]) - 1]++;
    }
    for (int i = 0; i < results.length; i++) {
      System.out.println(results[i]);
    }
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] list = new int[n - 1]; list new int[n - 1] n - 1 n 1 int[] results = new int[n]; results new int[n] n for (int i = 0; i < list.length; i++) {
      list[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < list.length i list.length list list.length i++ i++ i {
      list[i] = sc.nextInt();
    } {
      list[i] = sc.nextInt();
    } list[i] = sc.nextInt() list[i] list i sc.nextInt() sc.nextInt sc for (int i = 1; i < results.length; i++) {
      results[i] = 0;
    } int i = 1; int i = 1; i 1 i < results.length i results.length results results.length i++ i++ i {
      results[i] = 0;
    } {
      results[i] = 0;
    } results[i] = 0 results[i] results i 0 for (int i = 0; i < list.length; i++) {
      results[(list[i]) - 1]++;
    } int i = 0; int i = 0; i 0 i < list.length i list.length list list.length i++ i++ i {
      results[(list[i]) - 1]++;
    } {
      results[(list[i]) - 1]++;
    } results[(list[i]) - 1]++ results[(list[i]) - 1] results (list[i]) - 1 (list[i]) list i 1 for (int i = 0; i < results.length; i++) {
      System.out.println(results[i]);
    } int i = 0; int i = 0; i 0 i < results.length i results.length results results.length i++ i++ i {
      System.out.println(results[i]);
    } {
      System.out.println(results[i]);
    } System.out.println(results[i]) System.out.println System.out System System.out results[i] results i sc.close() sc.close sc String[] args args
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] list = new int[n - 1];
    int[] results = new int[n];

    for (int i = 0; i < list.length; i++) {
      list[i] = sc.nextInt();
    }
    for (int i = 1; i < results.length; i++) {
      results[i] = 0;
    }

    for (int i = 0; i < list.length; i++) {
      results[(list[i]) - 1]++;
    }
    for (int i = 0; i < results.length; i++) {
      System.out.println(results[i]);
    }
    sc.close();
  }
}