import java.util.*;

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

        int N = scan.nextInt();
        int[] ls = new int[N];
        for (int i = 0; i < N-1; i++) {
            int boss = scan.nextInt();
            ls[boss-1] ++;
        }
        for (int i:ls) {
            System.out.println(i);
        }
    }
}
 import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

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

        int N = scan.nextInt();
        int[] ls = new int[N];
        for (int i = 0; i < N-1; i++) {
            int boss = scan.nextInt();
            ls[boss-1] ++;
        }
        for (int i:ls) {
            System.out.println(i);
        }
    } main {
        Scanner scan = new Scanner(System.in);

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

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

        int N = scan.nextInt();
        int[] ls = new int[N];
        for (int i = 0; i < N-1; i++) {
            int boss = scan.nextInt();
            ls[boss-1] ++;
        }
        for (int i:ls) {
            System.out.println(i);
        }
    }
} Main
import java.util.*;

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

        int N = scan.nextInt();
        int[] ls = new int[N];
        for (int i = 0; i < N-1; i++) {
            int boss = scan.nextInt();
            ls[boss-1] ++;
        }
        for (int i:ls) {
            System.out.println(i);
        }
    }
}

