import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int list[] = new int[X-1];
		for (int i = 0; i < X-1; i++) {
			list[i] = sc.nextInt();
		}
		int ans[] = new int[X];
		for (int i = 0; i < X-1; i++) {
			ans[list[i]-1]++;
		}

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

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int list[] = new int[X-1];
		for (int i = 0; i < X-1; i++) {
			list[i] = sc.nextInt();
		}
		int ans[] = new int[X];
		for (int i = 0; i < X-1; i++) {
			ans[list[i]-1]++;
		}

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

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int list[] = new int[X-1];
		for (int i = 0; i < X-1; i++) {
			list[i] = sc.nextInt();
		}
		int ans[] = new int[X];
		for (int i = 0; i < X-1; i++) {
			ans[list[i]-1]++;
		}

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

	} main {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int list[] = new int[X-1];
		for (int i = 0; i < X-1; i++) {
			list[i] = sc.nextInt();
		}
		int ans[] = new int[X];
		for (int i = 0; i < X-1; i++) {
			ans[list[i]-1]++;
		}

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

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

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

	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int list[] = new int[X-1];
		for (int i = 0; i < X-1; i++) {
			list[i] = sc.nextInt();
		}
		int ans[] = new int[X];
		for (int i = 0; i < X-1; i++) {
			ans[list[i]-1]++;
		}

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

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int list[] = new int[X-1];
		for (int i = 0; i < X-1; i++) {
			list[i] = sc.nextInt();
		}
		int ans[] = new int[X];
		for (int i = 0; i < X-1; i++) {
			ans[list[i]-1]++;
		}

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

	}
}