import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    List<Integer> ls = new ArrayList<Integer>(n);
    for (int i = 0; i < n; i++) {
      ls.add(0);
    }
    for (int i = 0; i < n - 1; i++) {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    }
    sc.close();
    for (int i = 0; i < n; i++) {
      System.out.println(ls.get(i));
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    List<Integer> ls = new ArrayList<Integer>(n);
    for (int i = 0; i < n; i++) {
      ls.add(0);
    }
    for (int i = 0; i < n - 1; i++) {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    }
    sc.close();
    for (int i = 0; i < n; i++) {
      System.out.println(ls.get(i));
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    List<Integer> ls = new ArrayList<Integer>(n);
    for (int i = 0; i < n; i++) {
      ls.add(0);
    }
    for (int i = 0; i < n - 1; i++) {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    }
    sc.close();
    for (int i = 0; i < n; i++) {
      System.out.println(ls.get(i));
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    List<Integer> ls = new ArrayList<Integer>(n);
    for (int i = 0; i < n; i++) {
      ls.add(0);
    }
    for (int i = 0; i < n - 1; i++) {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    }
    sc.close();
    for (int i = 0; i < n; i++) {
      System.out.println(ls.get(i));
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> ls = new ArrayList<Integer>(n); ls new ArrayList<Integer>(n) for (int i = 0; i < n; i++) {
      ls.add(0);
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      ls.add(0);
    } {
      ls.add(0);
    } ls.add(0) ls.add ls 0 for (int i = 0; i < n - 1; i++) {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    } int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    } {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    } int boss = sc.nextInt(); boss sc.nextInt() sc.nextInt sc ls.set(boss - 1, ls.get(boss - 1) + 1) ls.set ls boss - 1 boss 1 ls.get(boss - 1) + 1 ls.get(boss - 1) ls.get ls boss - 1 boss 1 1 sc.close() sc.close sc for (int i = 0; i < n; i++) {
      System.out.println(ls.get(i));
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      System.out.println(ls.get(i));
    } {
      System.out.println(ls.get(i));
    } System.out.println(ls.get(i)) System.out.println System.out System System.out ls.get(i) ls.get ls i String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    List<Integer> ls = new ArrayList<Integer>(n);
    for (int i = 0; i < n; i++) {
      ls.add(0);
    }
    for (int i = 0; i < n - 1; i++) {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    }
    sc.close();
    for (int i = 0; i < n; i++) {
      System.out.println(ls.get(i));
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    List<Integer> ls = new ArrayList<Integer>(n);
    for (int i = 0; i < n; i++) {
      ls.add(0);
    }
    for (int i = 0; i < n - 1; i++) {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    }
    sc.close();
    for (int i = 0; i < n; i++) {
      System.out.println(ls.get(i));
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    List<Integer> ls = new ArrayList<Integer>(n);
    for (int i = 0; i < n; i++) {
      ls.add(0);
    }
    for (int i = 0; i < n - 1; i++) {
      int boss = sc.nextInt();
      ls.set(boss - 1, ls.get(boss - 1) + 1);
    }
    sc.close();
    for (int i = 0; i < n; i++) {
      System.out.println(ls.get(i));
    }
  }
}