import java.util.Scanner;

public class Main {
  public static void main(String[] main) {
    Scanner input = new Scanner(System.in);
    int n = Integer.parseInt(input.nextLine());
    String[] ss = input.nextLine().split(" ");
    int[] xs = new int[n];
    for (int i = 0; i < n-1; i++) {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    }
    for (int i = 0; i < n; i++) {
      System.out.println(xs[i]);
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] main) {
    Scanner input = new Scanner(System.in);
    int n = Integer.parseInt(input.nextLine());
    String[] ss = input.nextLine().split(" ");
    int[] xs = new int[n];
    for (int i = 0; i < n-1; i++) {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    }
    for (int i = 0; i < n; i++) {
      System.out.println(xs[i]);
    }
  }
} Main public static void main(String[] main) {
    Scanner input = new Scanner(System.in);
    int n = Integer.parseInt(input.nextLine());
    String[] ss = input.nextLine().split(" ");
    int[] xs = new int[n];
    for (int i = 0; i < n-1; i++) {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    }
    for (int i = 0; i < n; i++) {
      System.out.println(xs[i]);
    }
  } main {
    Scanner input = new Scanner(System.in);
    int n = Integer.parseInt(input.nextLine());
    String[] ss = input.nextLine().split(" ");
    int[] xs = new int[n];
    for (int i = 0; i < n-1; i++) {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    }
    for (int i = 0; i < n; i++) {
      System.out.println(xs[i]);
    }
  } Scanner input = new Scanner(System.in); input new Scanner(System.in) int n = Integer.parseInt(input.nextLine()); n Integer.parseInt(input.nextLine()) Integer.parseInt Integer input.nextLine() input.nextLine input String[] ss = input.nextLine().split(" "); ss input.nextLine().split(" ") input.nextLine().split input.nextLine() input.nextLine input " " int[] xs = new int[n]; xs new int[n] n for (int i = 0; i < n-1; i++) {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    } int i = 0; int i = 0; i 0 i < n-1 i n-1 n 1 i++ i++ i {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    } {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    } int x = Integer.parseInt(ss[i]) - 1; x Integer.parseInt(ss[i]) - 1 Integer.parseInt(ss[i]) Integer.parseInt Integer ss[i] ss i 1 xs[x] += 1 xs[x] xs x 1 for (int i = 0; i < n; i++) {
      System.out.println(xs[i]);
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      System.out.println(xs[i]);
    } {
      System.out.println(xs[i]);
    } System.out.println(xs[i]) System.out.println System.out System System.out xs[i] xs i String[] main main public class Main {
  public static void main(String[] main) {
    Scanner input = new Scanner(System.in);
    int n = Integer.parseInt(input.nextLine());
    String[] ss = input.nextLine().split(" ");
    int[] xs = new int[n];
    for (int i = 0; i < n-1; i++) {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    }
    for (int i = 0; i < n; i++) {
      System.out.println(xs[i]);
    }
  }
} public class Main {
  public static void main(String[] main) {
    Scanner input = new Scanner(System.in);
    int n = Integer.parseInt(input.nextLine());
    String[] ss = input.nextLine().split(" ");
    int[] xs = new int[n];
    for (int i = 0; i < n-1; i++) {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    }
    for (int i = 0; i < n; i++) {
      System.out.println(xs[i]);
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] main) {
    Scanner input = new Scanner(System.in);
    int n = Integer.parseInt(input.nextLine());
    String[] ss = input.nextLine().split(" ");
    int[] xs = new int[n];
    for (int i = 0; i < n-1; i++) {
      int x = Integer.parseInt(ss[i]) - 1;
      xs[x] += 1;
    }
    for (int i = 0; i < n; i++) {
      System.out.println(xs[i]);
    }
  }
}