import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        int[] boss = new int[numberOfPerson];
        for (int i = 0; i < boss.length - 1; i++){
            boss[scanner.nextInt() - 1]++;
        }
        for (int i : boss){
            System.out.println(i);
        }

        /*
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        List<String> boss = Arrays.asList(scanner.nextLine().split(" "));
        Map<String, Integer> map = boss.stream().collect(
                Collectors.groupingBy(
                        Function.identity(),
                        Collectors.summingInt(s -> 1)
                )
        );
        for (int i = 1; i < numberOfPerson + 1; i++){
            if (map.containsKey(String.valueOf(i))) {
                System.out.println(map.get(String.valueOf(i)));
            }else {
                System.out.println(0);
            }
        }



        int[] array = new int[10];
        for (int i = 0; i < array.length; i++){
            System.out.println(array[i]);
        }

         */
    }
} import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util import java.util.function.Function; Function java.util.function import java.util.stream.Collectors; Collectors java.util.stream public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        int[] boss = new int[numberOfPerson];
        for (int i = 0; i < boss.length - 1; i++){
            boss[scanner.nextInt() - 1]++;
        }
        for (int i : boss){
            System.out.println(i);
        }

        /*
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        List<String> boss = Arrays.asList(scanner.nextLine().split(" "));
        Map<String, Integer> map = boss.stream().collect(
                Collectors.groupingBy(
                        Function.identity(),
                        Collectors.summingInt(s -> 1)
                )
        );
        for (int i = 1; i < numberOfPerson + 1; i++){
            if (map.containsKey(String.valueOf(i))) {
                System.out.println(map.get(String.valueOf(i)));
            }else {
                System.out.println(0);
            }
        }



        int[] array = new int[10];
        for (int i = 0; i < array.length; i++){
            System.out.println(array[i]);
        }

         */
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        int[] boss = new int[numberOfPerson];
        for (int i = 0; i < boss.length - 1; i++){
            boss[scanner.nextInt() - 1]++;
        }
        for (int i : boss){
            System.out.println(i);
        }

        /*
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        List<String> boss = Arrays.asList(scanner.nextLine().split(" "));
        Map<String, Integer> map = boss.stream().collect(
                Collectors.groupingBy(
                        Function.identity(),
                        Collectors.summingInt(s -> 1)
                )
        );
        for (int i = 1; i < numberOfPerson + 1; i++){
            if (map.containsKey(String.valueOf(i))) {
                System.out.println(map.get(String.valueOf(i)));
            }else {
                System.out.println(0);
            }
        }



        int[] array = new int[10];
        for (int i = 0; i < array.length; i++){
            System.out.println(array[i]);
        }

         */
    } main {
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        int[] boss = new int[numberOfPerson];
        for (int i = 0; i < boss.length - 1; i++){
            boss[scanner.nextInt() - 1]++;
        }
        for (int i : boss){
            System.out.println(i);
        }

        /*
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        List<String> boss = Arrays.asList(scanner.nextLine().split(" "));
        Map<String, Integer> map = boss.stream().collect(
                Collectors.groupingBy(
                        Function.identity(),
                        Collectors.summingInt(s -> 1)
                )
        );
        for (int i = 1; i < numberOfPerson + 1; i++){
            if (map.containsKey(String.valueOf(i))) {
                System.out.println(map.get(String.valueOf(i)));
            }else {
                System.out.println(0);
            }
        }



        int[] array = new int[10];
        for (int i = 0; i < array.length; i++){
            System.out.println(array[i]);
        }

         */
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int numberOfPerson = Integer.parseInt(scanner.nextLine()); numberOfPerson Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner int[] boss = new int[numberOfPerson]; boss new int[numberOfPerson] numberOfPerson for (int i = 0; i < boss.length - 1; i++){
            boss[scanner.nextInt() - 1]++;
        } int i = 0; int i = 0; i 0 i < boss.length - 1 i boss.length - 1 boss.length boss boss.length 1 i++ i++ i {
            boss[scanner.nextInt() - 1]++;
        } {
            boss[scanner.nextInt() - 1]++;
        } boss[scanner.nextInt() - 1]++ boss[scanner.nextInt() - 1] boss scanner.nextInt() - 1 scanner.nextInt() scanner.nextInt scanner 1 for (int i : boss){
            System.out.println(i);
        } int i boss {
            System.out.println(i);
        } {
            System.out.println(i);
        } System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        int[] boss = new int[numberOfPerson];
        for (int i = 0; i < boss.length - 1; i++){
            boss[scanner.nextInt() - 1]++;
        }
        for (int i : boss){
            System.out.println(i);
        }

        /*
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        List<String> boss = Arrays.asList(scanner.nextLine().split(" "));
        Map<String, Integer> map = boss.stream().collect(
                Collectors.groupingBy(
                        Function.identity(),
                        Collectors.summingInt(s -> 1)
                )
        );
        for (int i = 1; i < numberOfPerson + 1; i++){
            if (map.containsKey(String.valueOf(i))) {
                System.out.println(map.get(String.valueOf(i)));
            }else {
                System.out.println(0);
            }
        }



        int[] array = new int[10];
        for (int i = 0; i < array.length; i++){
            System.out.println(array[i]);
        }

         */
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        int[] boss = new int[numberOfPerson];
        for (int i = 0; i < boss.length - 1; i++){
            boss[scanner.nextInt() - 1]++;
        }
        for (int i : boss){
            System.out.println(i);
        }

        /*
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        List<String> boss = Arrays.asList(scanner.nextLine().split(" "));
        Map<String, Integer> map = boss.stream().collect(
                Collectors.groupingBy(
                        Function.identity(),
                        Collectors.summingInt(s -> 1)
                )
        );
        for (int i = 1; i < numberOfPerson + 1; i++){
            if (map.containsKey(String.valueOf(i))) {
                System.out.println(map.get(String.valueOf(i)));
            }else {
                System.out.println(0);
            }
        }



        int[] array = new int[10];
        for (int i = 0; i < array.length; i++){
            System.out.println(array[i]);
        }

         */
    }
} Main
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.function.Function;
import java.util.stream.Collectors;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        int[] boss = new int[numberOfPerson];
        for (int i = 0; i < boss.length - 1; i++){
            boss[scanner.nextInt() - 1]++;
        }
        for (int i : boss){
            System.out.println(i);
        }

        /*
        Scanner scanner = new Scanner(System.in);
        int numberOfPerson = Integer.parseInt(scanner.nextLine());
        List<String> boss = Arrays.asList(scanner.nextLine().split(" "));
        Map<String, Integer> map = boss.stream().collect(
                Collectors.groupingBy(
                        Function.identity(),
                        Collectors.summingInt(s -> 1)
                )
        );
        for (int i = 1; i < numberOfPerson + 1; i++){
            if (map.containsKey(String.valueOf(i))) {
                System.out.println(map.get(String.valueOf(i)));
            }else {
                System.out.println(0);
            }
        }



        int[] array = new int[10];
        for (int i = 0; i < array.length; i++){
            System.out.println(array[i]);
        }

         */
    }
}
