import java.util.Scanner;

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

        for (int i = 0; i < N - 1; i++) {
            syain[sc.nextInt()-1]++;
        }

        for (int a : syain) {
            System.out.println(a);
        }
    }
} 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[] syain = new int[N];

        for (int i = 0; i < N - 1; i++) {
            syain[sc.nextInt()-1]++;
        }

        for (int a : syain) {
            System.out.println(a);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] syain = new int[N];

        for (int i = 0; i < N - 1; i++) {
            syain[sc.nextInt()-1]++;
        }

        for (int a : syain) {
            System.out.println(a);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] syain = new int[N];

        for (int i = 0; i < N - 1; i++) {
            syain[sc.nextInt()-1]++;
        }

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

        for (int i = 0; i < N - 1; i++) {
            syain[sc.nextInt()-1]++;
        }

        for (int a : syain) {
            System.out.println(a);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] syain = new int[N];

        for (int i = 0; i < N - 1; i++) {
            syain[sc.nextInt()-1]++;
        }

        for (int a : syain) {
            System.out.println(a);
        }
    }
} 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[] syain = new int[N];

        for (int i = 0; i < N - 1; i++) {
            syain[sc.nextInt()-1]++;
        }

        for (int a : syain) {
            System.out.println(a);
        }
    }
}