import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n -1; i++) {
			a[scan.nextInt() - 1]++;
		}
		for (int i : a) {
			System.out.println(i);
		}
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n -1; i++) {
			a[scan.nextInt() - 1]++;
		}
		for (int i : a) {
			System.out.println(i);
		}
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n -1; i++) {
			a[scan.nextInt() - 1]++;
		}
		for (int i : a) {
			System.out.println(i);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n -1; i++) {
			a[scan.nextInt() - 1]++;
		}
		for (int i : a) {
			System.out.println(i);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a = new int[n]; a new int[n] n for (int i = 0; i < n -1; i++) {
			a[scan.nextInt() - 1]++;
		} int i = 0; int i = 0; i 0 i < n -1 i n -1 n 1 i++ i++ i {
			a[scan.nextInt() - 1]++;
		} {
			a[scan.nextInt() - 1]++;
		} a[scan.nextInt() - 1]++ a[scan.nextInt() - 1] a scan.nextInt() - 1 scan.nextInt() scan.nextInt scan 1 for (int i : a) {
			System.out.println(i);
		} int i a {
			System.out.println(i);
		} {
			System.out.println(i);
		} System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n -1; i++) {
			a[scan.nextInt() - 1]++;
		}
		for (int i : a) {
			System.out.println(i);
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n -1; i++) {
			a[scan.nextInt() - 1]++;
		}
		for (int i : a) {
			System.out.println(i);
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int n = scan.nextInt();
		int[] a = new int[n];

		for (int i = 0; i < n -1; i++) {
			a[scan.nextInt() - 1]++;
		}
		for (int i : a) {
			System.out.println(i);
		}
	}

}
