import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int[] cnt = new int[N];
    for (int i = 1; i < N; i++) {
      int A = scanner.nextInt();
      cnt[A - 1]++;
    }
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < N; i++) {
      sb.append(cnt[i]).append('\n');
    }
    System.out.println(sb.toString());
  }
} 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[] cnt = new int[N];
    for (int i = 1; i < N; i++) {
      int A = scanner.nextInt();
      cnt[A - 1]++;
    }
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < N; i++) {
      sb.append(cnt[i]).append('\n');
    }
    System.out.println(sb.toString());
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int[] cnt = new int[N];
    for (int i = 1; i < N; i++) {
      int A = scanner.nextInt();
      cnt[A - 1]++;
    }
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < N; i++) {
      sb.append(cnt[i]).append('\n');
    }
    System.out.println(sb.toString());
  } main {
    Scanner scanner = new Scanner(System.in);

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

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

    int N = scanner.nextInt();
    int[] cnt = new int[N];
    for (int i = 1; i < N; i++) {
      int A = scanner.nextInt();
      cnt[A - 1]++;
    }
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < N; i++) {
      sb.append(cnt[i]).append('\n');
    }
    System.out.println(sb.toString());
  }
} 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[] cnt = new int[N];
    for (int i = 1; i < N; i++) {
      int A = scanner.nextInt();
      cnt[A - 1]++;
    }
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < N; i++) {
      sb.append(cnt[i]).append('\n');
    }
    System.out.println(sb.toString());
  }
}
