import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);

		emp = scan.nextInt();
		int[] array = new int[emp-1];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.nextInt();
		}

		int[] manager = new int[emp+1];
		for(int i = 0; i < array.length; i++) {
			manager[array[i]]++;
		}

		for(int i = 1; i < manager.length; i++) {
			System.out.println(manager[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int emp;

		Scanner scan = new Scanner(System.in);

		emp = scan.nextInt();
		int[] array = new int[emp-1];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.nextInt();
		}

		int[] manager = new int[emp+1];
		for(int i = 0; i < array.length; i++) {
			manager[array[i]]++;
		}

		for(int i = 1; i < manager.length; i++) {
			System.out.println(manager[i]);
		}
	}
} Main public static void main(String[] args) {
		int emp;

		Scanner scan = new Scanner(System.in);

		emp = scan.nextInt();
		int[] array = new int[emp-1];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.nextInt();
		}

		int[] manager = new int[emp+1];
		for(int i = 0; i < array.length; i++) {
			manager[array[i]]++;
		}

		for(int i = 1; i < manager.length; i++) {
			System.out.println(manager[i]);
		}
	} main {
		int emp;

		Scanner scan = new Scanner(System.in);

		emp = scan.nextInt();
		int[] array = new int[emp-1];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.nextInt();
		}

		int[] manager = new int[emp+1];
		for(int i = 0; i < array.length; i++) {
			manager[array[i]]++;
		}

		for(int i = 1; i < manager.length; i++) {
			System.out.println(manager[i]);
		}
	} int emp; emp Scanner scan = new Scanner(System.in); scan new Scanner(System.in) emp = scan.nextInt() emp scan.nextInt() scan.nextInt scan int[] array = new int[emp-1]; array new int[emp-1] emp-1 emp 1 for(int i = 0; i < array.length; i++) {
			array[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
			array[i] = scan.nextInt();
		} {
			array[i] = scan.nextInt();
		} array[i] = scan.nextInt() array[i] array i scan.nextInt() scan.nextInt scan int[] manager = new int[emp+1]; manager new int[emp+1] emp+1 emp 1 for(int i = 0; i < array.length; i++) {
			manager[array[i]]++;
		} int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
			manager[array[i]]++;
		} {
			manager[array[i]]++;
		} manager[array[i]]++ manager[array[i]] manager array[i] array i for(int i = 1; i < manager.length; i++) {
			System.out.println(manager[i]);
		} int i = 1; int i = 1; i 1 i < manager.length i manager.length manager manager.length i++ i++ i {
			System.out.println(manager[i]);
		} {
			System.out.println(manager[i]);
		} System.out.println(manager[i]) System.out.println System.out System System.out manager[i] manager i String[] args args public class Main {
	public static void main(String[] args) {
		int emp;

		Scanner scan = new Scanner(System.in);

		emp = scan.nextInt();
		int[] array = new int[emp-1];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.nextInt();
		}

		int[] manager = new int[emp+1];
		for(int i = 0; i < array.length; i++) {
			manager[array[i]]++;
		}

		for(int i = 1; i < manager.length; i++) {
			System.out.println(manager[i]);
		}
	}
} public class Main {
	public static void main(String[] args) {
		int emp;

		Scanner scan = new Scanner(System.in);

		emp = scan.nextInt();
		int[] array = new int[emp-1];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.nextInt();
		}

		int[] manager = new int[emp+1];
		for(int i = 0; i < array.length; i++) {
			manager[array[i]]++;
		}

		for(int i = 1; i < manager.length; i++) {
			System.out.println(manager[i]);
		}
	}
} Main
import java.util.Scanner;

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

		Scanner scan = new Scanner(System.in);

		emp = scan.nextInt();
		int[] array = new int[emp-1];
		for(int i = 0; i < array.length; i++) {
			array[i] = scan.nextInt();
		}

		int[] manager = new int[emp+1];
		for(int i = 0; i < array.length; i++) {
			manager[array[i]]++;
		}

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