import java.util.*;
public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int arr[] = new int[N];
		
		for (int i = 0; i < arr.length-1; i++) {
			arr[sc.nextInt()-1]++;
		}
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		}
		sc.close();
    }	
		
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int arr[] = new int[N];
		
		for (int i = 0; i < arr.length-1; i++) {
			arr[sc.nextInt()-1]++;
		}
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		}
		sc.close();
    }	
		
} Main public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int arr[] = new int[N];
		
		for (int i = 0; i < arr.length-1; i++) {
			arr[sc.nextInt()-1]++;
		}
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		}
		sc.close();
    } main {
      	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int arr[] = new int[N];
		
		for (int i = 0; i < arr.length-1; i++) {
			arr[sc.nextInt()-1]++;
		}
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		}
		sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int arr[] = new int[N]; arr new int[N] N for (int i = 0; i < arr.length-1; i++) {
			arr[sc.nextInt()-1]++;
		} int i = 0; int i = 0; i 0 i < arr.length-1 i arr.length-1 arr.length arr arr.length 1 i++ i++ i {
			arr[sc.nextInt()-1]++;
		} {
			arr[sc.nextInt()-1]++;
		} arr[sc.nextInt()-1]++ arr[sc.nextInt()-1] arr sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		} int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
			System.out.println(arr[i]);
		} {
			System.out.println(arr[i]);
		} System.out.println(arr[i]) System.out.println System.out System System.out arr[i] arr 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();
		
		int arr[] = new int[N];
		
		for (int i = 0; i < arr.length-1; i++) {
			arr[sc.nextInt()-1]++;
		}
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		}
		sc.close();
    }	
		
} public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int arr[] = new int[N];
		
		for (int i = 0; i < arr.length-1; i++) {
			arr[sc.nextInt()-1]++;
		}
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		}
		sc.close();
    }	
		
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		int arr[] = new int[N];
		
		for (int i = 0; i < arr.length-1; i++) {
			arr[sc.nextInt()-1]++;
		}
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]);
		}
		sc.close();
    }	
		
}