import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a;	//a[0]:A1
        a = new int[n];

        for (int i=1; i<n; i++) {
        	a[i] = 0;
        }

        for (int i=1; i<n; i++) {
        	a[(scan.nextInt())-1] += 1;
        }

        for (int i=0; i<n; i++) {
			System.out.println(a[i]);
        }
	    scan.close();	
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a;	//a[0]:A1
        a = new int[n];

        for (int i=1; i<n; i++) {
        	a[i] = 0;
        }

        for (int i=1; i<n; i++) {
        	a[(scan.nextInt())-1] += 1;
        }

        for (int i=0; i<n; i++) {
			System.out.println(a[i]);
        }
	    scan.close();	
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a;	//a[0]:A1
        a = new int[n];

        for (int i=1; i<n; i++) {
        	a[i] = 0;
        }

        for (int i=1; i<n; i++) {
        	a[(scan.nextInt())-1] += 1;
        }

        for (int i=0; i<n; i++) {
			System.out.println(a[i]);
        }
	    scan.close();	
    } main {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a;	//a[0]:A1
        a = new int[n];

        for (int i=1; i<n; i++) {
        	a[i] = 0;
        }

        for (int i=1; i<n; i++) {
        	a[(scan.nextInt())-1] += 1;
        }

        for (int i=0; i<n; i++) {
			System.out.println(a[i]);
        }
	    scan.close();	
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a; a a = new int[n] a new int[n] n for (int i=1; i<n; i++) {
        	a[i] = 0;
        } int i=1; int i=1; i 1 i<n i n i++ i++ i {
        	a[i] = 0;
        } {
        	a[i] = 0;
        } a[i] = 0 a[i] a i 0 for (int i=1; i<n; i++) {
        	a[(scan.nextInt())-1] += 1;
        } int i=1; int i=1; i 1 i<n i n i++ i++ i {
        	a[(scan.nextInt())-1] += 1;
        } {
        	a[(scan.nextInt())-1] += 1;
        } a[(scan.nextInt())-1] += 1 a[(scan.nextInt())-1] a (scan.nextInt())-1 (scan.nextInt()) scan.nextInt scan 1 1 for (int i=0; i<n; i++) {
			System.out.println(a[i]);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
			System.out.println(a[i]);
        } {
			System.out.println(a[i]);
        } System.out.println(a[i]) System.out.println System.out System System.out a[i] a i scan.close() scan.close scan String[] args args public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a;	//a[0]:A1
        a = new int[n];

        for (int i=1; i<n; i++) {
        	a[i] = 0;
        }

        for (int i=1; i<n; i++) {
        	a[(scan.nextInt())-1] += 1;
        }

        for (int i=0; i<n; i++) {
			System.out.println(a[i]);
        }
	    scan.close();	
    }
} public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a;	//a[0]:A1
        a = new int[n];

        for (int i=1; i<n; i++) {
        	a[i] = 0;
        }

        for (int i=1; i<n; i++) {
        	a[(scan.nextInt())-1] += 1;
        }

        for (int i=0; i<n; i++) {
			System.out.println(a[i]);
        }
	    scan.close();	
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a;	//a[0]:A1
        a = new int[n];

        for (int i=1; i<n; i++) {
        	a[i] = 0;
        }

        for (int i=1; i<n; i++) {
        	a[(scan.nextInt())-1] += 1;
        }

        for (int i=0; i<n; i++) {
			System.out.println(a[i]);
        }
	    scan.close();	
    }
}