import java.util.Scanner;

public class Main {

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

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

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

} public class Main {

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

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

}
