import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

class Main {
    public static void main(final String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        String[] arr = new String[2];
        for(int i = 0;i < arr.length;i++) {
            arr[i] = scanner.nextLine();
        }

        int n = Integer.parseInt(arr[0]);

        String[] line2 = arr[1].split(" ");

        int[] a = new int[line2.length];
        for (int i = 0; i < line2.length; i++) {
            a[i] = Integer.parseInt(line2[i]);
        }

        int[] answers = new int[n];
        for (int id : a) {
            answers[id - 1] ++;
        }

        for (int answer : answers) {
            System.out.println(answer);
        }

        scanner.close();
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(final String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        String[] arr = new String[2];
        for(int i = 0;i < arr.length;i++) {
            arr[i] = scanner.nextLine();
        }

        int n = Integer.parseInt(arr[0]);

        String[] line2 = arr[1].split(" ");

        int[] a = new int[line2.length];
        for (int i = 0; i < line2.length; i++) {
            a[i] = Integer.parseInt(line2[i]);
        }

        int[] answers = new int[n];
        for (int id : a) {
            answers[id - 1] ++;
        }

        for (int answer : answers) {
            System.out.println(answer);
        }

        scanner.close();
    }
} Main public static void main(final String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        String[] arr = new String[2];
        for(int i = 0;i < arr.length;i++) {
            arr[i] = scanner.nextLine();
        }

        int n = Integer.parseInt(arr[0]);

        String[] line2 = arr[1].split(" ");

        int[] a = new int[line2.length];
        for (int i = 0; i < line2.length; i++) {
            a[i] = Integer.parseInt(line2[i]);
        }

        int[] answers = new int[n];
        for (int id : a) {
            answers[id - 1] ++;
        }

        for (int answer : answers) {
            System.out.println(answer);
        }

        scanner.close();
    } main {
        
        Scanner scanner = new Scanner(System.in);
        String[] arr = new String[2];
        for(int i = 0;i < arr.length;i++) {
            arr[i] = scanner.nextLine();
        }

        int n = Integer.parseInt(arr[0]);

        String[] line2 = arr[1].split(" ");

        int[] a = new int[line2.length];
        for (int i = 0; i < line2.length; i++) {
            a[i] = Integer.parseInt(line2[i]);
        }

        int[] answers = new int[n];
        for (int id : a) {
            answers[id - 1] ++;
        }

        for (int answer : answers) {
            System.out.println(answer);
        }

        scanner.close();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] arr = new String[2]; arr new String[2] 2 for(int i = 0;i < arr.length;i++) {
            arr[i] = scanner.nextLine();
        } int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
            arr[i] = scanner.nextLine();
        } {
            arr[i] = scanner.nextLine();
        } arr[i] = scanner.nextLine() arr[i] arr i scanner.nextLine() scanner.nextLine scanner int n = Integer.parseInt(arr[0]); n Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 String[] line2 = arr[1].split(" "); line2 arr[1].split(" ") arr[1].split arr[1] arr 1 " " int[] a = new int[line2.length]; a new int[line2.length] line2.length line2 line2.length for (int i = 0; i < line2.length; i++) {
            a[i] = Integer.parseInt(line2[i]);
        } int i = 0; int i = 0; i 0 i < line2.length i line2.length line2 line2.length i++ i++ i {
            a[i] = Integer.parseInt(line2[i]);
        } {
            a[i] = Integer.parseInt(line2[i]);
        } a[i] = Integer.parseInt(line2[i]) a[i] a i Integer.parseInt(line2[i]) Integer.parseInt Integer line2[i] line2 i int[] answers = new int[n]; answers new int[n] n for (int id : a) {
            answers[id - 1] ++;
        } int id a {
            answers[id - 1] ++;
        } {
            answers[id - 1] ++;
        } answers[id - 1] ++ answers[id - 1] answers id - 1 id 1 for (int answer : answers) {
            System.out.println(answer);
        } int answer answers {
            System.out.println(answer);
        } {
            System.out.println(answer);
        } System.out.println(answer) System.out.println System.out System System.out answer scanner.close() scanner.close scanner final String[] args args
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

class Main {
    public static void main(final String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        String[] arr = new String[2];
        for(int i = 0;i < arr.length;i++) {
            arr[i] = scanner.nextLine();
        }

        int n = Integer.parseInt(arr[0]);

        String[] line2 = arr[1].split(" ");

        int[] a = new int[line2.length];
        for (int i = 0; i < line2.length; i++) {
            a[i] = Integer.parseInt(line2[i]);
        }

        int[] answers = new int[n];
        for (int id : a) {
            answers[id - 1] ++;
        }

        for (int answer : answers) {
            System.out.println(answer);
        }

        scanner.close();
    }
}
