import java.util.Scanner;

class Main {
	public static void main(String[] $){
		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n];

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

		for (int x : a) {
			System.out.println(x);
		}

		sc.close();
	}
}
 import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] $){
		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n];

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

		for (int x : a) {
			System.out.println(x);
		}

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

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

		for (int x : a) {
			System.out.println(x);
		}

		sc.close();
	} main {
		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n];

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

		for (int x : a) {
			System.out.println(x);
		}

		sc.close();
	} Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int a[] = new int[n]; a new int[n] n for (int i = 0; i < n - 1; i++) {
			a[sc.nextInt() - 1]++;
		} int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
			a[sc.nextInt() - 1]++;
		} {
			a[sc.nextInt() - 1]++;
		} a[sc.nextInt() - 1]++ a[sc.nextInt() - 1] a sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 for (int x : a) {
			System.out.println(x);
		} int x a {
			System.out.println(x);
		} {
			System.out.println(x);
		} System.out.println(x) System.out.println System.out System System.out x sc.close() sc.close sc String[] $ $
import java.util.Scanner;

class Main {
	public static void main(String[] $){
		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n];

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

		for (int x : a) {
			System.out.println(x);
		}

		sc.close();
	}
}

