import java.util.*;

public class Main {
    Scanner sc = new Scanner(System.in);
    public static void main(String[] args){
        new Main().run();
    }

    private void run(){
        int N = sc.nextInt();
        int[] A = new int[N];



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

        for(int a: A){
            System.out.println(a);
        }
        sc.close();
    }
} import java.util.*; util.* java public class Main {
    Scanner sc = new Scanner(System.in);
    public static void main(String[] args){
        new Main().run();
    }

    private void run(){
        int N = sc.nextInt();
        int[] A = new int[N];



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

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



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

        for(int a: A){
            System.out.println(a);
        }
        sc.close();
    } run {
        int N = sc.nextInt();
        int[] A = new int[N];



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

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

    private void run(){
        int N = sc.nextInt();
        int[] A = new int[N];



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

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

    private void run(){
        int N = sc.nextInt();
        int[] A = new int[N];



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

        for(int a: A){
            System.out.println(a);
        }
        sc.close();
    }
} Main
import java.util.*;

public class Main {
    Scanner sc = new Scanner(System.in);
    public static void main(String[] args){
        new Main().run();
    }

    private void run(){
        int N = sc.nextInt();
        int[] A = new int[N];



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

        for(int a: A){
            System.out.println(a);
        }
        sc.close();
    }
}