import java.util.*;
 
public class Main {
 
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
 
		int n = scanner.nextInt();
		int arr[] = new int[n];
		for(int i = 0; i < n - 1; i++) {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		}
		
		for(int value : arr)
			System.out.println(value);
		
 
		scanner.close();
	}
 
} import java.util.*; util.* java public class Main {
 
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
 
		int n = scanner.nextInt();
		int arr[] = new int[n];
		for(int i = 0; i < n - 1; i++) {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		}
		
		for(int value : arr)
			System.out.println(value);
		
 
		scanner.close();
	}
 
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
 
		int n = scanner.nextInt();
		int arr[] = new int[n];
		for(int i = 0; i < n - 1; i++) {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		}
		
		for(int value : arr)
			System.out.println(value);
		
 
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
 
		int n = scanner.nextInt();
		int arr[] = new int[n];
		for(int i = 0; i < n - 1; i++) {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		}
		
		for(int value : arr)
			System.out.println(value);
		
 
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int arr[] = new int[n]; arr new int[n] n for(int i = 0; i < n - 1; i++) {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		} int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		} {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		} int value = scanner.nextInt(); value scanner.nextInt() scanner.nextInt scanner arr[value - 1] += 1 arr[value - 1] arr value - 1 value 1 1 for(int value : arr)
			System.out.println(value); int value arr System.out.println(value); System.out.println(value) System.out.println System.out System System.out value scanner.close() scanner.close scanner String[] args args public class Main {
 
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
 
		int n = scanner.nextInt();
		int arr[] = new int[n];
		for(int i = 0; i < n - 1; i++) {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		}
		
		for(int value : arr)
			System.out.println(value);
		
 
		scanner.close();
	}
 
} public class Main {
 
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
 
		int n = scanner.nextInt();
		int arr[] = new int[n];
		for(int i = 0; i < n - 1; i++) {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		}
		
		for(int value : arr)
			System.out.println(value);
		
 
		scanner.close();
	}
 
} Main
import java.util.*;
 
public class Main {
 
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
 
		int n = scanner.nextInt();
		int arr[] = new int[n];
		for(int i = 0; i < n - 1; i++) {
			int value = scanner.nextInt();
			arr[value - 1] += 1;
		}
		
		for(int value : arr)
			System.out.println(value);
		
 
		scanner.close();
	}
 
}