import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int empNum = sc.nextInt();
		int[] rel = new int[empNum - 1];

		for (int i=0;i<rel.length;i++) {
			rel[i] = 0;
		}

		for(int i=0;i<rel.length;i++) {
			rel[sc.nextInt()-1]++;
		}

		for (int i = 0; i < rel.length; i++) {
			System.out.println(rel[i]);
		}
		System.out.println("0");


		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 empNum = sc.nextInt();
		int[] rel = new int[empNum - 1];

		for (int i=0;i<rel.length;i++) {
			rel[i] = 0;
		}

		for(int i=0;i<rel.length;i++) {
			rel[sc.nextInt()-1]++;
		}

		for (int i = 0; i < rel.length; i++) {
			System.out.println(rel[i]);
		}
		System.out.println("0");


		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int empNum = sc.nextInt();
		int[] rel = new int[empNum - 1];

		for (int i=0;i<rel.length;i++) {
			rel[i] = 0;
		}

		for(int i=0;i<rel.length;i++) {
			rel[sc.nextInt()-1]++;
		}

		for (int i = 0; i < rel.length; i++) {
			System.out.println(rel[i]);
		}
		System.out.println("0");


		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int empNum = sc.nextInt();
		int[] rel = new int[empNum - 1];

		for (int i=0;i<rel.length;i++) {
			rel[i] = 0;
		}

		for(int i=0;i<rel.length;i++) {
			rel[sc.nextInt()-1]++;
		}

		for (int i = 0; i < rel.length; i++) {
			System.out.println(rel[i]);
		}
		System.out.println("0");


		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int empNum = sc.nextInt(); empNum sc.nextInt() sc.nextInt sc int[] rel = new int[empNum - 1]; rel new int[empNum - 1] empNum - 1 empNum 1 for (int i=0;i<rel.length;i++) {
			rel[i] = 0;
		} int i=0; int i=0; i 0 i<rel.length i rel.length rel rel.length i++ i++ i {
			rel[i] = 0;
		} {
			rel[i] = 0;
		} rel[i] = 0 rel[i] rel i 0 for(int i=0;i<rel.length;i++) {
			rel[sc.nextInt()-1]++;
		} int i=0; int i=0; i 0 i<rel.length i rel.length rel rel.length i++ i++ i {
			rel[sc.nextInt()-1]++;
		} {
			rel[sc.nextInt()-1]++;
		} rel[sc.nextInt()-1]++ rel[sc.nextInt()-1] rel sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 for (int i = 0; i < rel.length; i++) {
			System.out.println(rel[i]);
		} int i = 0; int i = 0; i 0 i < rel.length i rel.length rel rel.length i++ i++ i {
			System.out.println(rel[i]);
		} {
			System.out.println(rel[i]);
		} System.out.println(rel[i]) System.out.println System.out System System.out rel[i] rel i System.out.println("0") System.out.println System.out System System.out "0" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int empNum = sc.nextInt();
		int[] rel = new int[empNum - 1];

		for (int i=0;i<rel.length;i++) {
			rel[i] = 0;
		}

		for(int i=0;i<rel.length;i++) {
			rel[sc.nextInt()-1]++;
		}

		for (int i = 0; i < rel.length; i++) {
			System.out.println(rel[i]);
		}
		System.out.println("0");


		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int empNum = sc.nextInt();
		int[] rel = new int[empNum - 1];

		for (int i=0;i<rel.length;i++) {
			rel[i] = 0;
		}

		for(int i=0;i<rel.length;i++) {
			rel[sc.nextInt()-1]++;
		}

		for (int i = 0; i < rel.length; i++) {
			System.out.println(rel[i]);
		}
		System.out.println("0");


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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int empNum = sc.nextInt();
		int[] rel = new int[empNum - 1];

		for (int i=0;i<rel.length;i++) {
			rel[i] = 0;
		}

		for(int i=0;i<rel.length;i++) {
			rel[sc.nextInt()-1]++;
		}

		for (int i = 0; i < rel.length; i++) {
			System.out.println(rel[i]);
		}
		System.out.println("0");


		sc.close();
	}
}