import java.util.Scanner;

public class Main {

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

		int A = sc.nextInt();

		int[] con_bra = new int[A + 1];

		for (int i = 1; i < A; i++) {
			int let = sc.nextInt();
			con_bra[let]++;
		}

		for (int i = 1; i <= A; i++) {
			System.out.println(con_bra[i]);
		}

	}
} import java.util.Scanner; Scanner java.util public class Main {

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

		int A = sc.nextInt();

		int[] con_bra = new int[A + 1];

		for (int i = 1; i < A; i++) {
			int let = sc.nextInt();
			con_bra[let]++;
		}

		for (int i = 1; i <= A; i++) {
			System.out.println(con_bra[i]);
		}

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

		int A = sc.nextInt();

		int[] con_bra = new int[A + 1];

		for (int i = 1; i < A; i++) {
			int let = sc.nextInt();
			con_bra[let]++;
		}

		for (int i = 1; i <= A; i++) {
			System.out.println(con_bra[i]);
		}

	} main {
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();

		int[] con_bra = new int[A + 1];

		for (int i = 1; i < A; i++) {
			int let = sc.nextInt();
			con_bra[let]++;
		}

		for (int i = 1; i <= A; i++) {
			System.out.println(con_bra[i]);
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int[] con_bra = new int[A + 1]; con_bra new int[A + 1] A + 1 A 1 for (int i = 1; i < A; i++) {
			int let = sc.nextInt();
			con_bra[let]++;
		} int i = 1; int i = 1; i 1 i < A i A i++ i++ i {
			int let = sc.nextInt();
			con_bra[let]++;
		} {
			int let = sc.nextInt();
			con_bra[let]++;
		} int let = sc.nextInt(); let sc.nextInt() sc.nextInt sc con_bra[let]++ con_bra[let] con_bra let for (int i = 1; i <= A; i++) {
			System.out.println(con_bra[i]);
		} int i = 1; int i = 1; i 1 i <= A i A i++ i++ i {
			System.out.println(con_bra[i]);
		} {
			System.out.println(con_bra[i]);
		} System.out.println(con_bra[i]) System.out.println System.out System System.out con_bra[i] con_bra i String[] args args public class Main {

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

		int A = sc.nextInt();

		int[] con_bra = new int[A + 1];

		for (int i = 1; i < A; i++) {
			int let = sc.nextInt();
			con_bra[let]++;
		}

		for (int i = 1; i <= A; i++) {
			System.out.println(con_bra[i]);
		}

	}
} public class Main {

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

		int A = sc.nextInt();

		int[] con_bra = new int[A + 1];

		for (int i = 1; i < A; i++) {
			int let = sc.nextInt();
			con_bra[let]++;
		}

		for (int i = 1; i <= A; i++) {
			System.out.println(con_bra[i]);
		}

	}
} Main
import java.util.Scanner;

public class Main {

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

		int A = sc.nextInt();

		int[] con_bra = new int[A + 1];

		for (int i = 1; i < A; i++) {
			int let = sc.nextInt();
			con_bra[let]++;
		}

		for (int i = 1; i <= A; i++) {
			System.out.println(con_bra[i]);
		}

	}
}