
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] res = new int[N+1];
		for (int i = 0; i < N-1; i++) {
			int tmp = sc.nextInt();
			res[tmp]++;
		}
		for (int i = 1; i < res.length; i++) {
			System.out.println(res[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] res = new int[N+1];
		for (int i = 0; i < N-1; i++) {
			int tmp = sc.nextInt();
			res[tmp]++;
		}
		for (int i = 1; i < res.length; i++) {
			System.out.println(res[i]);
		}
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] res = new int[N+1];
		for (int i = 0; i < N-1; i++) {
			int tmp = sc.nextInt();
			res[tmp]++;
		}
		for (int i = 1; i < res.length; i++) {
			System.out.println(res[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] res = new int[N+1];
		for (int i = 0; i < N-1; i++) {
			int tmp = sc.nextInt();
			res[tmp]++;
		}
		for (int i = 1; i < res.length; i++) {
			System.out.println(res[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] res = new int[N+1]; res new int[N+1] N+1 N 1 for (int i = 0; i < N-1; i++) {
			int tmp = sc.nextInt();
			res[tmp]++;
		} int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
			int tmp = sc.nextInt();
			res[tmp]++;
		} {
			int tmp = sc.nextInt();
			res[tmp]++;
		} int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc res[tmp]++ res[tmp] res tmp for (int i = 1; i < res.length; i++) {
			System.out.println(res[i]);
		} int i = 1; int i = 1; i 1 i < res.length i res.length res res.length i++ i++ i {
			System.out.println(res[i]);
		} {
			System.out.println(res[i]);
		} System.out.println(res[i]) System.out.println System.out System System.out res[i] res i String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] res = new int[N+1];
		for (int i = 0; i < N-1; i++) {
			int tmp = sc.nextInt();
			res[tmp]++;
		}
		for (int i = 1; i < res.length; i++) {
			System.out.println(res[i]);
		}
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] res = new int[N+1];
		for (int i = 0; i < N-1; i++) {
			int tmp = sc.nextInt();
			res[tmp]++;
		}
		for (int i = 1; i < res.length; i++) {
			System.out.println(res[i]);
		}
	}
} Main

import java.util.Scanner;

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