import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int employee = sc.nextInt();
		int[] results = new int[employee];
		for (int i = 0; i < employee - 1; i++) {
			int boss = sc.nextInt();
			results[boss - 1]++;
		}
		sc.close();
		for (int result : results) {
			System.out.println(result);
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int employee = sc.nextInt();
		int[] results = new int[employee];
		for (int i = 0; i < employee - 1; i++) {
			int boss = sc.nextInt();
			results[boss - 1]++;
		}
		sc.close();
		for (int result : results) {
			System.out.println(result);
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int employee = sc.nextInt();
		int[] results = new int[employee];
		for (int i = 0; i < employee - 1; i++) {
			int boss = sc.nextInt();
			results[boss - 1]++;
		}
		sc.close();
		for (int result : results) {
			System.out.println(result);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int employee = sc.nextInt();
		int[] results = new int[employee];
		for (int i = 0; i < employee - 1; i++) {
			int boss = sc.nextInt();
			results[boss - 1]++;
		}
		sc.close();
		for (int result : results) {
			System.out.println(result);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int employee = sc.nextInt(); employee sc.nextInt() sc.nextInt sc int[] results = new int[employee]; results new int[employee] employee for (int i = 0; i < employee - 1; i++) {
			int boss = sc.nextInt();
			results[boss - 1]++;
		} int i = 0; int i = 0; i 0 i < employee - 1 i employee - 1 employee 1 i++ i++ i {
			int boss = sc.nextInt();
			results[boss - 1]++;
		} {
			int boss = sc.nextInt();
			results[boss - 1]++;
		} int boss = sc.nextInt(); boss sc.nextInt() sc.nextInt sc results[boss - 1]++ results[boss - 1] results boss - 1 boss 1 sc.close() sc.close sc for (int result : results) {
			System.out.println(result);
		} int result results {
			System.out.println(result);
		} {
			System.out.println(result);
		} System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int employee = sc.nextInt();
		int[] results = new int[employee];
		for (int i = 0; i < employee - 1; i++) {
			int boss = sc.nextInt();
			results[boss - 1]++;
		}
		sc.close();
		for (int result : results) {
			System.out.println(result);
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int employee = sc.nextInt();
		int[] results = new int[employee];
		for (int i = 0; i < employee - 1; i++) {
			int boss = sc.nextInt();
			results[boss - 1]++;
		}
		sc.close();
		for (int result : results) {
			System.out.println(result);
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int employee = sc.nextInt();
		int[] results = new int[employee];
		for (int i = 0; i < employee - 1; i++) {
			int boss = sc.nextInt();
			results[boss - 1]++;
		}
		sc.close();
		for (int result : results) {
			System.out.println(result);
		}
	}

}
