import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] subordinates = new int[n];

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

        for (int i = 1; i < n; i++) subordinates[sc.nextInt() - 1]++;
        for (int num: subordinates) System.out.println(num);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] subordinates = new int[n];

        for (int i = 1; i < n; i++) subordinates[sc.nextInt() - 1]++;
        for (int num: subordinates) System.out.println(num);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] subordinates = new int[n];

        for (int i = 1; i < n; i++) subordinates[sc.nextInt() - 1]++;
        for (int num: subordinates) System.out.println(num);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] subordinates = new int[n]; subordinates new int[n] n for (int i = 1; i < n; i++) subordinates[sc.nextInt() - 1]++; int i = 1; int i = 1; i 1 i < n i n i++ i++ i subordinates[sc.nextInt() - 1]++; subordinates[sc.nextInt() - 1]++ subordinates[sc.nextInt() - 1] subordinates sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 for (int num: subordinates) System.out.println(num); int num subordinates System.out.println(num); System.out.println(num) System.out.println System.out System System.out num 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[] subordinates = new int[n];

        for (int i = 1; i < n; i++) subordinates[sc.nextInt() - 1]++;
        for (int num: subordinates) System.out.println(num);
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] subordinates = new int[n];

        for (int i = 1; i < n; i++) subordinates[sc.nextInt() - 1]++;
        for (int num: subordinates) System.out.println(num);
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] subordinates = new int[n];

        for (int i = 1; i < n; i++) subordinates[sc.nextInt() - 1]++;
        for (int num: subordinates) System.out.println(num);
        sc.close();
    }
}