import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int [] ans = new int[num+1];
		for(int i = 1 ; i < num ;i++) {
			int a = sc.nextInt();
			ans[a]++;
		}
		for(int i = 1 ; i <= num ;i++) {
			System.out.println(ans[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int [] ans = new int[num+1];
		for(int i = 1 ; i < num ;i++) {
			int a = sc.nextInt();
			ans[a]++;
		}
		for(int i = 1 ; i <= num ;i++) {
			System.out.println(ans[i]);
		}
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int [] ans = new int[num+1];
		for(int i = 1 ; i < num ;i++) {
			int a = sc.nextInt();
			ans[a]++;
		}
		for(int i = 1 ; i <= num ;i++) {
			System.out.println(ans[i]);
		}
	} main {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int [] ans = new int[num+1];
		for(int i = 1 ; i < num ;i++) {
			int a = sc.nextInt();
			ans[a]++;
		}
		for(int i = 1 ; i <= num ;i++) {
			System.out.println(ans[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int [] ans = new int[num+1]; ans new int[num+1] num+1 num 1 for(int i = 1 ; i < num ;i++) {
			int a = sc.nextInt();
			ans[a]++;
		} int i = 1 ; int i = 1 ; i 1 i < num i num i++ i++ i {
			int a = sc.nextInt();
			ans[a]++;
		} {
			int a = sc.nextInt();
			ans[a]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc ans[a]++ ans[a] ans a for(int i = 1 ; i <= num ;i++) {
			System.out.println(ans[i]);
		} int i = 1 ; int i = 1 ; i 1 i <= num i num i++ i++ i {
			System.out.println(ans[i]);
		} {
			System.out.println(ans[i]);
		} System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i String[] args args public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int [] ans = new int[num+1];
		for(int i = 1 ; i < num ;i++) {
			int a = sc.nextInt();
			ans[a]++;
		}
		for(int i = 1 ; i <= num ;i++) {
			System.out.println(ans[i]);
		}
	}
} public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int [] ans = new int[num+1];
		for(int i = 1 ; i < num ;i++) {
			int a = sc.nextInt();
			ans[a]++;
		}
		for(int i = 1 ; i <= num ;i++) {
			System.out.println(ans[i]);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int [] ans = new int[num+1];
		for(int i = 1 ; i < num ;i++) {
			int a = sc.nextInt();
			ans[a]++;
		}
		for(int i = 1 ; i <= num ;i++) {
			System.out.println(ans[i]);
		}
	}
}