import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] array = new int[num];

        for (int i=0; i<num-1; i++) {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        }

        for (int i: array) {
            System.out.println(i);
        }
    }
} import java.io.File; File java.io import java.io.FileInputStream; FileInputStream java.io import java.io.FileNotFoundException; FileNotFoundException java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] array = new int[num];

        for (int i=0; i<num-1; i++) {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        }

        for (int i: array) {
            System.out.println(i);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] array = new int[num];

        for (int i=0; i<num-1; i++) {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        }

        for (int i: array) {
            System.out.println(i);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] array = new int[num];

        for (int i=0; i<num-1; i++) {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        }

        for (int i: array) {
            System.out.println(i);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int[] array = new int[num]; array new int[num] num for (int i=0; i<num-1; i++) {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        } int i=0; int i=0; i 0 i<num-1 i num-1 num 1 i++ i++ i {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        } {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        } int bossNum = sc.nextInt() - 1; bossNum sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 array[bossNum]++ array[bossNum] array bossNum for (int i: array) {
            System.out.println(i);
        } int i array {
            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) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] array = new int[num];

        for (int i=0; i<num-1; i++) {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        }

        for (int i: array) {
            System.out.println(i);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] array = new int[num];

        for (int i=0; i<num-1; i++) {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        }

        for (int i: array) {
            System.out.println(i);
        }
    }
} Main
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] array = new int[num];

        for (int i=0; i<num-1; i++) {
            int bossNum = sc.nextInt() - 1;
            array[bossNum]++;
        }

        for (int i: array) {
            System.out.println(i);
        }
    }
}
