import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] res = new int[N];
        for (int i = 0; i < res.length - 1; i++) {
            int index = sc.nextInt() - 1;
            res[index]++;
        }
        for (int i : res) {
            System.out.println(i);
        }
        sc.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] res = new int[N];
        for (int i = 0; i < res.length - 1; i++) {
            int index = sc.nextInt() - 1;
            res[index]++;
        }
        for (int i : res) {
            System.out.println(i);
        }
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] res = new int[N];
        for (int i = 0; i < res.length - 1; i++) {
            int index = sc.nextInt() - 1;
            res[index]++;
        }
        for (int i : res) {
            System.out.println(i);
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] res = new int[N];
        for (int i = 0; i < res.length - 1; i++) {
            int index = sc.nextInt() - 1;
            res[index]++;
        }
        for (int i : res) {
            System.out.println(i);
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] res = new int[N]; res new int[N] N for (int i = 0; i < res.length - 1; i++) {
            int index = sc.nextInt() - 1;
            res[index]++;
        } int i = 0; int i = 0; i 0 i < res.length - 1 i res.length - 1 res.length res res.length 1 i++ i++ i {
            int index = sc.nextInt() - 1;
            res[index]++;
        } {
            int index = sc.nextInt() - 1;
            res[index]++;
        } int index = sc.nextInt() - 1; index sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 res[index]++ res[index] res index for (int i : res) {
            System.out.println(i);
        } int i res {
            System.out.println(i);
        } {
            System.out.println(i);
        } System.out.println(i) System.out.println System.out System System.out i 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[] res = new int[N];
        for (int i = 0; i < res.length - 1; i++) {
            int index = sc.nextInt() - 1;
            res[index]++;
        }
        for (int i : res) {
            System.out.println(i);
        }
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] res = new int[N];
        for (int i = 0; i < res.length - 1; i++) {
            int index = sc.nextInt() - 1;
            res[index]++;
        }
        for (int i : res) {
            System.out.println(i);
        }
        sc.close();
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] res = new int[N];
        for (int i = 0; i < res.length - 1; i++) {
            int index = sc.nextInt() - 1;
            res[index]++;
        }
        for (int i : res) {
            System.out.println(i);
        }
        sc.close();
    }
}