import java.util.Scanner;

public class Main {
	public static void main(String[] rags) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int[] list = new int[n];

		for(int i =0;i < n - 1;i++) {
			list[scan.nextInt() - 1] += 1;
		}

		for(int i = 0;i < n;i++) {
			System.out.println(list[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] rags) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int[] list = new int[n];

		for(int i =0;i < n - 1;i++) {
			list[scan.nextInt() - 1] += 1;
		}

		for(int i = 0;i < n;i++) {
			System.out.println(list[i]);
		}
	}
} Main public static void main(String[] rags) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int[] list = new int[n];

		for(int i =0;i < n - 1;i++) {
			list[scan.nextInt() - 1] += 1;
		}

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

		int n = scan.nextInt();
		int[] list = new int[n];

		for(int i =0;i < n - 1;i++) {
			list[scan.nextInt() - 1] += 1;
		}

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

		int n = scan.nextInt();
		int[] list = new int[n];

		for(int i =0;i < n - 1;i++) {
			list[scan.nextInt() - 1] += 1;
		}

		for(int i = 0;i < n;i++) {
			System.out.println(list[i]);
		}
	}
} public class Main {
	public static void main(String[] rags) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int[] list = new int[n];

		for(int i =0;i < n - 1;i++) {
			list[scan.nextInt() - 1] += 1;
		}

		for(int i = 0;i < n;i++) {
			System.out.println(list[i]);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] rags) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int[] list = new int[n];

		for(int i =0;i < n - 1;i++) {
			list[scan.nextInt() - 1] += 1;
		}

		for(int i = 0;i < n;i++) {
			System.out.println(list[i]);
		}
	}
}
