import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n= sc.nextInt();
		long[] A = new long[n];
		long[] ANS = new long[n];
		ANS[n-1]=0;	

		for (int i = 0; i < n-1; i++)
			A[i]= sc.nextInt();
		
		for (int i = 0; i < n-1; i++)
			ANS[(int) (A[i]-1)]++;	

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

		for (int i = 0; i < n-1; i++)
			A[i]= sc.nextInt();
		
		for (int i = 0; i < n-1; i++)
			ANS[(int) (A[i]-1)]++;	

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

		for (int i = 0; i < n-1; i++)
			A[i]= sc.nextInt();
		
		for (int i = 0; i < n-1; i++)
			ANS[(int) (A[i]-1)]++;	

		for (int i = 0; i < n; i++) 
		System.out.println(ANS[i]);
      
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n= sc.nextInt();
		long[] A = new long[n];
		long[] ANS = new long[n];
		ANS[n-1]=0;	

		for (int i = 0; i < n-1; i++)
			A[i]= sc.nextInt();
		
		for (int i = 0; i < n-1; i++)
			ANS[(int) (A[i]-1)]++;	

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

		for (int i = 0; i < n-1; i++)
			A[i]= sc.nextInt();
		
		for (int i = 0; i < n-1; i++)
			ANS[(int) (A[i]-1)]++;	

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

		for (int i = 0; i < n-1; i++)
			A[i]= sc.nextInt();
		
		for (int i = 0; i < n-1; i++)
			ANS[(int) (A[i]-1)]++;	

		for (int i = 0; i < n; i++) 
		System.out.println(ANS[i]);
      
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n= sc.nextInt();
		long[] A = new long[n];
		long[] ANS = new long[n];
		ANS[n-1]=0;	

		for (int i = 0; i < n-1; i++)
			A[i]= sc.nextInt();
		
		for (int i = 0; i < n-1; i++)
			ANS[(int) (A[i]-1)]++;	

		for (int i = 0; i < n; i++) 
		System.out.println(ANS[i]);
      
		sc.close();
	}
}