import java.util.Scanner;

public class Main {

	void run() {
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			int[] a = new int[n + 1];
			for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			}

			System.out.print(sb);
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}

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

	void run() {
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			int[] a = new int[n + 1];
			for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			}

			System.out.print(sb);
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}

} Main void run() {
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			int[] a = new int[n + 1];
			for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			}

			System.out.print(sb);
		}
	} run {
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			int[] a = new int[n + 1];
			for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			}

			System.out.print(sb);
		}
	} try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			int[] a = new int[n + 1];
			for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			}

			System.out.print(sb);
		} {
			int n = sc.nextInt();
			int[] a = new int[n + 1];
			for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			}

			System.out.print(sb);
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n + 1]; a new int[n + 1] n + 1 n 1 for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			} int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
				a[sc.nextInt()]++;
			} {
				a[sc.nextInt()]++;
			} a[sc.nextInt()]++ a[sc.nextInt()] a sc.nextInt() sc.nextInt sc StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			} int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
				sb.append(a[i]).append(System.lineSeparator());
			} {
				sb.append(a[i]).append(System.lineSeparator());
			} sb.append(a[i]).append(System.lineSeparator()) sb.append(a[i]).append sb.append(a[i]) sb.append sb a[i] a i System.lineSeparator() System.lineSeparator System System.out.print(sb) System.out.print System.out System System.out sb public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public class Main {

	void run() {
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			int[] a = new int[n + 1];
			for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			}

			System.out.print(sb);
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}

} public class Main {

	void run() {
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			int[] a = new int[n + 1];
			for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			}

			System.out.print(sb);
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}

} Main
import java.util.Scanner;

public class Main {

	void run() {
		try (Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			int[] a = new int[n + 1];
			for (int i = 1; i < n; i++) {
				a[sc.nextInt()]++;
			}

			StringBuilder sb = new StringBuilder();
			for (int i = 1; i <= n; i++) {
				sb.append(a[i]).append(System.lineSeparator());
			}

			System.out.print(sb);
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}

}
