import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data1 = sc.nextLine();
        String data2 = sc.nextLine();
        
        int n = Integer.parseInt(data1);
        
        String[] array2 = data2.split(" ");
        
        int[] shain = new int[n];
        
        for(int i = 0; i < array2.length; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        }
        
        for(int j = 0; j < n; j++)
        {
            System.out.println(shain[j]);
        }
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data1 = sc.nextLine();
        String data2 = sc.nextLine();
        
        int n = Integer.parseInt(data1);
        
        String[] array2 = data2.split(" ");
        
        int[] shain = new int[n];
        
        for(int i = 0; i < array2.length; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        }
        
        for(int j = 0; j < n; j++)
        {
            System.out.println(shain[j]);
        }
        
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data1 = sc.nextLine();
        String data2 = sc.nextLine();
        
        int n = Integer.parseInt(data1);
        
        String[] array2 = data2.split(" ");
        
        int[] shain = new int[n];
        
        for(int i = 0; i < array2.length; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        }
        
        for(int j = 0; j < n; j++)
        {
            System.out.println(shain[j]);
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        String data1 = sc.nextLine();
        String data2 = sc.nextLine();
        
        int n = Integer.parseInt(data1);
        
        String[] array2 = data2.split(" ");
        
        int[] shain = new int[n];
        
        for(int i = 0; i < array2.length; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        }
        
        for(int j = 0; j < n; j++)
        {
            System.out.println(shain[j]);
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String data1 = sc.nextLine(); data1 sc.nextLine() sc.nextLine sc String data2 = sc.nextLine(); data2 sc.nextLine() sc.nextLine sc int n = Integer.parseInt(data1); n Integer.parseInt(data1) Integer.parseInt Integer data1 String[] array2 = data2.split(" "); array2 data2.split(" ") data2.split data2 " " int[] shain = new int[n]; shain new int[n] n for(int i = 0; i < array2.length; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        } int i = 0; int i = 0; i 0 i < array2.length i array2.length array2 array2.length i++ i++ i {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        } {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        } int buf = Integer.parseInt(array2[i]); buf Integer.parseInt(array2[i]) Integer.parseInt Integer array2[i] array2 i shain[buf - 1] ++ shain[buf - 1] shain buf - 1 buf 1 for(int j = 0; j < n; j++)
        {
            System.out.println(shain[j]);
        } int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
            System.out.println(shain[j]);
        } {
            System.out.println(shain[j]);
        } System.out.println(shain[j]) System.out.println System.out System System.out shain[j] shain j String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data1 = sc.nextLine();
        String data2 = sc.nextLine();
        
        int n = Integer.parseInt(data1);
        
        String[] array2 = data2.split(" ");
        
        int[] shain = new int[n];
        
        for(int i = 0; i < array2.length; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        }
        
        for(int j = 0; j < n; j++)
        {
            System.out.println(shain[j]);
        }
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data1 = sc.nextLine();
        String data2 = sc.nextLine();
        
        int n = Integer.parseInt(data1);
        
        String[] array2 = data2.split(" ");
        
        int[] shain = new int[n];
        
        for(int i = 0; i < array2.length; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        }
        
        for(int j = 0; j < n; j++)
        {
            System.out.println(shain[j]);
        }
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data1 = sc.nextLine();
        String data2 = sc.nextLine();
        
        int n = Integer.parseInt(data1);
        
        String[] array2 = data2.split(" ");
        
        int[] shain = new int[n];
        
        for(int i = 0; i < array2.length; i++)
        {
            int buf = Integer.parseInt(array2[i]);
            shain[buf - 1] ++;
        }
        
        for(int j = 0; j < n; j++)
        {
            System.out.println(shain[j]);
        }
        
    }
}
