import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N + 1];

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

		for (int i = 1; i <= N; i++) {
			System.out.println(A[i]);
		}
	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N + 1];

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

		for (int i = 1; i <= N; i++) {
			System.out.println(A[i]);
		}
	}
} Main public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N + 1];

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

		for (int i = 1; i <= N; i++) {
			System.out.println(A[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N + 1];

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

		for (int i = 1; i <= N; i++) {
			System.out.println(A[i]);
		}
	} 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 + 1]; A new int[N + 1] N + 1 N 1 for (int i = 0; i < N-1; i++) {
			int a = sc.nextInt();
			A[a]++;
		} int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
			int a = sc.nextInt();
			A[a]++;
		} {
			int a = sc.nextInt();
			A[a]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc A[a]++ A[a] A a for (int i = 1; i <= N; i++) {
			System.out.println(A[i]);
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			System.out.println(A[i]);
		} {
			System.out.println(A[i]);
		} System.out.println(A[i]) System.out.println System.out System System.out A[i] A i String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N + 1];

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

		for (int i = 1; i <= N; i++) {
			System.out.println(A[i]);
		}
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N + 1];

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

		for (int i = 1; i <= N; i++) {
			System.out.println(A[i]);
		}
	}
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		int[] A = new int[N + 1];

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

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