/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

/**
 *
 * @author yoovraj.shinde
 */
public class Main {
    public static void main(String[] args) {
    //        if (true) return;
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n  = in.nextInt();
        int[] mem = new int[n];
        for (int i = 0 ; i < n-1; i++) {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        }
        for (int i : mem) {
            System.out.println(i);
        }
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
    //        if (true) return;
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n  = in.nextInt();
        int[] mem = new int[n];
        for (int i = 0 ; i < n-1; i++) {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        }
        for (int i : mem) {
            System.out.println(i);
        }
    }

} Main public static void main(String[] args) {
    //        if (true) return;
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n  = in.nextInt();
        int[] mem = new int[n];
        for (int i = 0 ; i < n-1; i++) {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        }
        for (int i : mem) {
            System.out.println(i);
        }
    } main {
    //        if (true) return;
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n  = in.nextInt();
        int[] mem = new int[n];
        for (int i = 0 ; i < n-1; i++) {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        }
        for (int i : mem) {
            System.out.println(i);
        }
    } Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) int n  = in.nextInt(); n in.nextInt() in.nextInt in int[] mem = new int[n]; mem new int[n] n for (int i = 0 ; i < n-1; i++) {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        } int i = 0 ; int i = 0 ; i 0 i < n-1 i n-1 n 1 i++ i++ i {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        } {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        } mem[Integer.parseInt(in.next()) - 1 ] ++ mem[Integer.parseInt(in.next()) - 1 ] mem Integer.parseInt(in.next()) - 1 Integer.parseInt(in.next()) Integer.parseInt Integer in.next() in.next in 1 for (int i : mem) {
            System.out.println(i);
        } int i mem {
            System.out.println(i);
        } {
            System.out.println(i);
        } System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {
    public static void main(String[] args) {
    //        if (true) return;
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n  = in.nextInt();
        int[] mem = new int[n];
        for (int i = 0 ; i < n-1; i++) {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        }
        for (int i : mem) {
            System.out.println(i);
        }
    }

} public class Main {
    public static void main(String[] args) {
    //        if (true) return;
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n  = in.nextInt();
        int[] mem = new int[n];
        for (int i = 0 ; i < n-1; i++) {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        }
        for (int i : mem) {
            System.out.println(i);
        }
    }

} Main
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

/**
 *
 * @author yoovraj.shinde
 */
public class Main {
    public static void main(String[] args) {
    //        if (true) return;
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n  = in.nextInt();
        int[] mem = new int[n];
        for (int i = 0 ; i < n-1; i++) {
            mem[Integer.parseInt(in.next()) - 1 ] ++;
        }
        for (int i : mem) {
            System.out.println(i);
        }
    }

}
