import java.util.Scanner;

public class Main {

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

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

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

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int [] arr = new int[n+1];
        for(int i=0; i<n-1; i++){
            arr[scanner.nextInt()]+=1;
        }
        for(int i=1; i<=n; i++)
            System.out.println(arr[i]);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int [] arr = new int[n+1];
        for(int i=0; i<n-1; i++){
            arr[scanner.nextInt()]+=1;
        }
        for(int i=1; i<=n; i++)
            System.out.println(arr[i]);
    }
}