
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		List<Integer> list = new ArrayList();
		for(int i = 0; i < N;i++) {
			list.add(0);
		}

		for(int i = 1;i < N;i++) {
			int c = Integer.parseInt(sc.next()) -1;
			int a = list.get(c);
			list.set(c, ++a);
		}

		for(Integer b : list) {
			System.out.println(b);
		}


	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		List<Integer> list = new ArrayList();
		for(int i = 0; i < N;i++) {
			list.add(0);
		}

		for(int i = 1;i < N;i++) {
			int c = Integer.parseInt(sc.next()) -1;
			int a = list.get(c);
			list.set(c, ++a);
		}

		for(Integer b : list) {
			System.out.println(b);
		}


	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		List<Integer> list = new ArrayList();
		for(int i = 0; i < N;i++) {
			list.add(0);
		}

		for(int i = 1;i < N;i++) {
			int c = Integer.parseInt(sc.next()) -1;
			int a = list.get(c);
			list.set(c, ++a);
		}

		for(Integer b : list) {
			System.out.println(b);
		}


	} main {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		List<Integer> list = new ArrayList();
		for(int i = 0; i < N;i++) {
			list.add(0);
		}

		for(int i = 1;i < N;i++) {
			int c = Integer.parseInt(sc.next()) -1;
			int a = list.get(c);
			list.set(c, ++a);
		}

		for(Integer b : list) {
			System.out.println(b);
		}


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> list = new ArrayList(); list new ArrayList() for(int i = 0; i < N;i++) {
			list.add(0);
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			list.add(0);
		} {
			list.add(0);
		} list.add(0) list.add list 0 for(int i = 1;i < N;i++) {
			int c = Integer.parseInt(sc.next()) -1;
			int a = list.get(c);
			list.set(c, ++a);
		} int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
			int c = Integer.parseInt(sc.next()) -1;
			int a = list.get(c);
			list.set(c, ++a);
		} {
			int c = Integer.parseInt(sc.next()) -1;
			int a = list.get(c);
			list.set(c, ++a);
		} int c = Integer.parseInt(sc.next()) -1; c Integer.parseInt(sc.next()) -1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc 1 int a = list.get(c); a list.get(c) list.get list c list.set(c, ++a) list.set list c ++a a for(Integer b : list) {
			System.out.println(b);
		} Integer b list {
			System.out.println(b);
		} {
			System.out.println(b);
		} System.out.println(b) System.out.println System.out System System.out b String[] args args

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		List<Integer> list = new ArrayList();
		for(int i = 0; i < N;i++) {
			list.add(0);
		}

		for(int i = 1;i < N;i++) {
			int c = Integer.parseInt(sc.next()) -1;
			int a = list.get(c);
			list.set(c, ++a);
		}

		for(Integer b : list) {
			System.out.println(b);
		}


	}
}