import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int N = a.nextInt();
		int[] AArray = new int[N];
		int[] array = new int[N];
		
			for(int j = 1; j < N; j++) {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			}
			for(int i = 0; i < N; i++) {
			System.out.println(array[i]);
			
		}

	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int N = a.nextInt();
		int[] AArray = new int[N];
		int[] array = new int[N];
		
			for(int j = 1; j < N; j++) {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			}
			for(int i = 0; i < N; i++) {
			System.out.println(array[i]);
			
		}

	}
} Main public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int N = a.nextInt();
		int[] AArray = new int[N];
		int[] array = new int[N];
		
			for(int j = 1; j < N; j++) {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			}
			for(int i = 0; i < N; i++) {
			System.out.println(array[i]);
			
		}

	} main {
		Scanner a = new Scanner(System.in);		
		int N = a.nextInt();
		int[] AArray = new int[N];
		int[] array = new int[N];
		
			for(int j = 1; j < N; j++) {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			}
			for(int i = 0; i < N; i++) {
			System.out.println(array[i]);
			
		}

	} Scanner a = new Scanner(System.in); a new Scanner(System.in) int N = a.nextInt(); N a.nextInt() a.nextInt a int[] AArray = new int[N]; AArray new int[N] N int[] array = new int[N]; array new int[N] N for(int j = 1; j < N; j++) {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			} int j = 1; int j = 1; j 1 j < N j N j++ j++ j {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			} {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			} AArray[j] = a.nextInt() AArray[j] AArray j a.nextInt() a.nextInt a array[AArray[j] - 1] += 1 array[AArray[j] - 1] array AArray[j] - 1 AArray[j] AArray j 1 1 for(int i = 0; i < N; i++) {
			System.out.println(array[i]);
			
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			System.out.println(array[i]);
			
		} {
			System.out.println(array[i]);
			
		} System.out.println(array[i]) System.out.println System.out System System.out array[i] array i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int N = a.nextInt();
		int[] AArray = new int[N];
		int[] array = new int[N];
		
			for(int j = 1; j < N; j++) {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			}
			for(int i = 0; i < N; i++) {
			System.out.println(array[i]);
			
		}

	}
} public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int N = a.nextInt();
		int[] AArray = new int[N];
		int[] array = new int[N];
		
			for(int j = 1; j < N; j++) {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			}
			for(int i = 0; i < N; i++) {
			System.out.println(array[i]);
			
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int N = a.nextInt();
		int[] AArray = new int[N];
		int[] array = new int[N];
		
			for(int j = 1; j < N; j++) {
				AArray[j] = a.nextInt();
				array[AArray[j] - 1] += 1;
				
			
			}
			for(int i = 0; i < N; i++) {
			System.out.println(array[i]);
			
		}

	}
}