import java.util.*;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N  = keyboard.nextInt();
		int[] A  = new int[N-1];
		
		for(int i=0; i<N-1; i++) {
			A[i] = keyboard.nextInt();
		}
		
		int[] SV = new int[N+1];
		
		for(int j=0; j<N-1; j++) {
			SV[A[j]] ++;
		}
		
		for(int k=1; k<=N; k++) {
			System.out.println(SV[k]);
		}
		keyboard.close();	
	}
} import java.util.*; util.* java public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N  = keyboard.nextInt();
		int[] A  = new int[N-1];
		
		for(int i=0; i<N-1; i++) {
			A[i] = keyboard.nextInt();
		}
		
		int[] SV = new int[N+1];
		
		for(int j=0; j<N-1; j++) {
			SV[A[j]] ++;
		}
		
		for(int k=1; k<=N; k++) {
			System.out.println(SV[k]);
		}
		keyboard.close();	
	}
} Main public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N  = keyboard.nextInt();
		int[] A  = new int[N-1];
		
		for(int i=0; i<N-1; i++) {
			A[i] = keyboard.nextInt();
		}
		
		int[] SV = new int[N+1];
		
		for(int j=0; j<N-1; j++) {
			SV[A[j]] ++;
		}
		
		for(int k=1; k<=N; k++) {
			System.out.println(SV[k]);
		}
		keyboard.close();	
	} main {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N  = keyboard.nextInt();
		int[] A  = new int[N-1];
		
		for(int i=0; i<N-1; i++) {
			A[i] = keyboard.nextInt();
		}
		
		int[] SV = new int[N+1];
		
		for(int j=0; j<N-1; j++) {
			SV[A[j]] ++;
		}
		
		for(int k=1; k<=N; k++) {
			System.out.println(SV[k]);
		}
		keyboard.close();	
	} Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) int N  = keyboard.nextInt(); N keyboard.nextInt() keyboard.nextInt keyboard int[] A  = new int[N-1]; A new int[N-1] N-1 N 1 for(int i=0; i<N-1; i++) {
			A[i] = keyboard.nextInt();
		} int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
			A[i] = keyboard.nextInt();
		} {
			A[i] = keyboard.nextInt();
		} A[i] = keyboard.nextInt() A[i] A i keyboard.nextInt() keyboard.nextInt keyboard int[] SV = new int[N+1]; SV new int[N+1] N+1 N 1 for(int j=0; j<N-1; j++) {
			SV[A[j]] ++;
		} int j=0; int j=0; j 0 j<N-1 j N-1 N 1 j++ j++ j {
			SV[A[j]] ++;
		} {
			SV[A[j]] ++;
		} SV[A[j]] ++ SV[A[j]] SV A[j] A j for(int k=1; k<=N; k++) {
			System.out.println(SV[k]);
		} int k=1; int k=1; k 1 k<=N k N k++ k++ k {
			System.out.println(SV[k]);
		} {
			System.out.println(SV[k]);
		} System.out.println(SV[k]) System.out.println System.out System System.out SV[k] SV k keyboard.close() keyboard.close keyboard String[] args args public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N  = keyboard.nextInt();
		int[] A  = new int[N-1];
		
		for(int i=0; i<N-1; i++) {
			A[i] = keyboard.nextInt();
		}
		
		int[] SV = new int[N+1];
		
		for(int j=0; j<N-1; j++) {
			SV[A[j]] ++;
		}
		
		for(int k=1; k<=N; k++) {
			System.out.println(SV[k]);
		}
		keyboard.close();	
	}
} public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N  = keyboard.nextInt();
		int[] A  = new int[N-1];
		
		for(int i=0; i<N-1; i++) {
			A[i] = keyboard.nextInt();
		}
		
		int[] SV = new int[N+1];
		
		for(int j=0; j<N-1; j++) {
			SV[A[j]] ++;
		}
		
		for(int k=1; k<=N; k++) {
			System.out.println(SV[k]);
		}
		keyboard.close();	
	}
} Main
import java.util.*;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		int N  = keyboard.nextInt();
		int[] A  = new int[N-1];
		
		for(int i=0; i<N-1; i++) {
			A[i] = keyboard.nextInt();
		}
		
		int[] SV = new int[N+1];
		
		for(int j=0; j<N-1; j++) {
			SV[A[j]] ++;
		}
		
		for(int k=1; k<=N; k++) {
			System.out.println(SV[k]);
		}
		keyboard.close();	
	}
}
