import java.util.Scanner;

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

		int[] josi = new int[cnt-1];

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

		int[] bukas = new int[cnt];
		for(int i = 0; i< cnt-1; i++) {
			bukas[josi[i]-1]++;
		}

		for(int buka : bukas) {
			System.out.println(buka);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int cnt = sc.nextInt();

		int[] josi = new int[cnt-1];

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

		int[] bukas = new int[cnt];
		for(int i = 0; i< cnt-1; i++) {
			bukas[josi[i]-1]++;
		}

		for(int buka : bukas) {
			System.out.println(buka);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int cnt = sc.nextInt();

		int[] josi = new int[cnt-1];

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

		int[] bukas = new int[cnt];
		for(int i = 0; i< cnt-1; i++) {
			bukas[josi[i]-1]++;
		}

		for(int buka : bukas) {
			System.out.println(buka);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int cnt = sc.nextInt();

		int[] josi = new int[cnt-1];

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

		int[] bukas = new int[cnt];
		for(int i = 0; i< cnt-1; i++) {
			bukas[josi[i]-1]++;
		}

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

		int[] josi = new int[cnt-1];

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

		int[] bukas = new int[cnt];
		for(int i = 0; i< cnt-1; i++) {
			bukas[josi[i]-1]++;
		}

		for(int buka : bukas) {
			System.out.println(buka);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int cnt = sc.nextInt();

		int[] josi = new int[cnt-1];

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

		int[] bukas = new int[cnt];
		for(int i = 0; i< cnt-1; i++) {
			bukas[josi[i]-1]++;
		}

		for(int buka : bukas) {
			System.out.println(buka);
		}
	}
} Main
import java.util.Scanner;

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

		int[] josi = new int[cnt-1];

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

		int[] bukas = new int[cnt];
		for(int i = 0; i< cnt-1; i++) {
			bukas[josi[i]-1]++;
		}

		for(int buka : bukas) {
			System.out.println(buka);
		}
	}
}