import java.util.Scanner;

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

		// 入力値の取得
		int N = sc.nextInt();
		int[] members = new int[N];
		for (int i = 1; i < N; i++) {
			int idx = sc.nextInt();
			members[idx-1]++;
		}
		
		// 結果の出力
		for (int i = 0; i < N; i++) {
			System.out.println(members[i]);
		}

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

		// 入力値の取得
		int N = sc.nextInt();
		int[] members = new int[N];
		for (int i = 1; i < N; i++) {
			int idx = sc.nextInt();
			members[idx-1]++;
		}
		
		// 結果の出力
		for (int i = 0; i < N; i++) {
			System.out.println(members[i]);
		}

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		int N = sc.nextInt();
		int[] members = new int[N];
		for (int i = 1; i < N; i++) {
			int idx = sc.nextInt();
			members[idx-1]++;
		}
		
		// 結果の出力
		for (int i = 0; i < N; i++) {
			System.out.println(members[i]);
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		int N = sc.nextInt();
		int[] members = new int[N];
		for (int i = 1; i < N; i++) {
			int idx = sc.nextInt();
			members[idx-1]++;
		}
		
		// 結果の出力
		for (int i = 0; i < N; i++) {
			System.out.println(members[i]);
		}

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

		// 入力値の取得
		int N = sc.nextInt();
		int[] members = new int[N];
		for (int i = 1; i < N; i++) {
			int idx = sc.nextInt();
			members[idx-1]++;
		}
		
		// 結果の出力
		for (int i = 0; i < N; i++) {
			System.out.println(members[i]);
		}

		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		int N = sc.nextInt();
		int[] members = new int[N];
		for (int i = 1; i < N; i++) {
			int idx = sc.nextInt();
			members[idx-1]++;
		}
		
		// 結果の出力
		for (int i = 0; i < N; i++) {
			System.out.println(members[i]);
		}

		sc.close();
	}
} Main
import java.util.Scanner;

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

		// 入力値の取得
		int N = sc.nextInt();
		int[] members = new int[N];
		for (int i = 1; i < N; i++) {
			int idx = sc.nextInt();
			members[idx-1]++;
		}
		
		// 結果の出力
		for (int i = 0; i < N; i++) {
			System.out.println(members[i]);
		}

		sc.close();
	}
}
