import java.util.Scanner;

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

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

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

        int emp[] = new int[num];
        for (int i = 0; i < num - 1; i++) {
            int id = scanner.nextInt();
            emp[id - 1]++;
        }
        for (int i = 0; i < num; i++) {
            System.out.println(emp[i]);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();

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

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

        int emp[] = new int[num];
        for (int i = 0; i < num - 1; i++) {
            int id = scanner.nextInt();
            emp[id - 1]++;
        }
        for (int i = 0; i < num; i++) {
            System.out.println(emp[i]);
        }
    }
} Main
import java.util.Scanner;

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

        int emp[] = new int[num];
        for (int i = 0; i < num - 1; i++) {
            int id = scanner.nextInt();
            emp[id - 1]++;
        }
        for (int i = 0; i < num; i++) {
            System.out.println(emp[i]);
        }
    }
}
