import java.util.Scanner;

public class Main {
	
    public static void main(String[] args) {
	        Scanner scan = new Scanner(System.in);
	        int number = scan.nextInt();
	        int[] people = new int[number];
	        for(int i=0;i<number-1;i++){
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        }
	        for(int i=0;i<number;i++){
	        	System.out.println(people[i]);
	        }
      }
} import java.util.Scanner; Scanner java.util public class Main {
	
    public static void main(String[] args) {
	        Scanner scan = new Scanner(System.in);
	        int number = scan.nextInt();
	        int[] people = new int[number];
	        for(int i=0;i<number-1;i++){
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        }
	        for(int i=0;i<number;i++){
	        	System.out.println(people[i]);
	        }
      }
} Main public static void main(String[] args) {
	        Scanner scan = new Scanner(System.in);
	        int number = scan.nextInt();
	        int[] people = new int[number];
	        for(int i=0;i<number-1;i++){
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        }
	        for(int i=0;i<number;i++){
	        	System.out.println(people[i]);
	        }
      } main {
	        Scanner scan = new Scanner(System.in);
	        int number = scan.nextInt();
	        int[] people = new int[number];
	        for(int i=0;i<number-1;i++){
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        }
	        for(int i=0;i<number;i++){
	        	System.out.println(people[i]);
	        }
      } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int number = scan.nextInt(); number scan.nextInt() scan.nextInt scan int[] people = new int[number]; people new int[number] number for(int i=0;i<number-1;i++){
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        } int i=0; int i=0; i 0 i<number-1 i number-1 number 1 i++ i++ i {
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        } {
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        } int no = scan.nextInt(); no scan.nextInt() scan.nextInt scan people[no-1]++ people[no-1] people no-1 no 1 for(int i=0;i<number;i++){
	        	System.out.println(people[i]);
	        } int i=0; int i=0; i 0 i<number i number i++ i++ i {
	        	System.out.println(people[i]);
	        } {
	        	System.out.println(people[i]);
	        } System.out.println(people[i]) System.out.println System.out System System.out people[i] people i String[] args args public class Main {
	
    public static void main(String[] args) {
	        Scanner scan = new Scanner(System.in);
	        int number = scan.nextInt();
	        int[] people = new int[number];
	        for(int i=0;i<number-1;i++){
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        }
	        for(int i=0;i<number;i++){
	        	System.out.println(people[i]);
	        }
      }
} public class Main {
	
    public static void main(String[] args) {
	        Scanner scan = new Scanner(System.in);
	        int number = scan.nextInt();
	        int[] people = new int[number];
	        for(int i=0;i<number-1;i++){
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        }
	        for(int i=0;i<number;i++){
	        	System.out.println(people[i]);
	        }
      }
} Main
import java.util.Scanner;

public class Main {
	
    public static void main(String[] args) {
	        Scanner scan = new Scanner(System.in);
	        int number = scan.nextInt();
	        int[] people = new int[number];
	        for(int i=0;i<number-1;i++){
	        	int no = scan.nextInt();
	        	people[no-1]++;
	        }
	        for(int i=0;i<number;i++){
	        	System.out.println(people[i]);
	        }
      }
}
