import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] s = new int[n];

        for (String i : str) {
            s[Integer.parseInt(i) - 1]++;
        }
        for (int j : s) {
            System.out.println(j);
        }

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] s = new int[n];

        for (String i : str) {
            s[Integer.parseInt(i) - 1]++;
        }
        for (int j : s) {
            System.out.println(j);
        }

    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] s = new int[n];

        for (String i : str) {
            s[Integer.parseInt(i) - 1]++;
        }
        for (int j : s) {
            System.out.println(j);
        }

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] s = new int[n];

        for (String i : str) {
            s[Integer.parseInt(i) - 1]++;
        }
        for (int j : s) {
            System.out.println(j);
        }

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] s = new int[n]; s new int[n] n for (String i : str) {
            s[Integer.parseInt(i) - 1]++;
        } String i str {
            s[Integer.parseInt(i) - 1]++;
        } {
            s[Integer.parseInt(i) - 1]++;
        } s[Integer.parseInt(i) - 1]++ s[Integer.parseInt(i) - 1] s Integer.parseInt(i) - 1 Integer.parseInt(i) Integer.parseInt Integer i 1 for (int j : s) {
            System.out.println(j);
        } int j s {
            System.out.println(j);
        } {
            System.out.println(j);
        } System.out.println(j) System.out.println System.out System System.out j String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] s = new int[n];

        for (String i : str) {
            s[Integer.parseInt(i) - 1]++;
        }
        for (int j : s) {
            System.out.println(j);
        }

    }
} public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] s = new int[n];

        for (String i : str) {
            s[Integer.parseInt(i) - 1]++;
        }
        for (int j : s) {
            System.out.println(j);
        }

    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] str = br.readLine().split(" ");
        int[] s = new int[n];

        for (String i : str) {
            s[Integer.parseInt(i) - 1]++;
        }
        for (int j : s) {
            System.out.println(j);
        }

    }
}
