import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

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


    }
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        int N;
        Scanner sc = new Scanner(System.in);
        N = sc.nextInt();
        int[] A = new int[N+1];
        for(int i = 1 ; i < N ; i++)
        {
            A[sc.nextInt()]++;
        }
        for(int i = 1 ; i <= N ; i++)
        {
            System.out.println(A[i]);
        }


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


    } main {
        int N;
        Scanner sc = new Scanner(System.in);
        N = sc.nextInt();
        int[] A = new int[N+1];
        for(int i = 1 ; i < N ; i++)
        {
            A[sc.nextInt()]++;
        }
        for(int i = 1 ; i <= N ; i++)
        {
            System.out.println(A[i]);
        }


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


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


    }
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

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


    }
}
