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());
        int[] res = new int[n+1];
        String[] str = br.readLine().split(" ");
        for(int i=0; i<n-1; ++i){
            res[Integer.parseInt(str[i])]++;
        }
        for(int i=1; i<=n; ++i){
            System.out.println(res[i]);
        }
    }
} 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());
        int[] res = new int[n+1];
        String[] str = br.readLine().split(" ");
        for(int i=0; i<n-1; ++i){
            res[Integer.parseInt(str[i])]++;
        }
        for(int i=1; i<=n; ++i){
            System.out.println(res[i]);
        }
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        int[] res = new int[n+1];
        String[] str = br.readLine().split(" ");
        for(int i=0; i<n-1; ++i){
            res[Integer.parseInt(str[i])]++;
        }
        for(int i=1; i<=n; ++i){
            System.out.println(res[i]);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        int[] res = new int[n+1];
        String[] str = br.readLine().split(" ");
        for(int i=0; i<n-1; ++i){
            res[Integer.parseInt(str[i])]++;
        }
        for(int i=1; i<=n; ++i){
            System.out.println(res[i]);
        }
    } 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 int[] res = new int[n+1]; res new int[n+1] n+1 n 1 String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int i=0; i<n-1; ++i){
            res[Integer.parseInt(str[i])]++;
        } int i=0; int i=0; i 0 i<n-1 i n-1 n 1 ++i ++i i {
            res[Integer.parseInt(str[i])]++;
        } {
            res[Integer.parseInt(str[i])]++;
        } res[Integer.parseInt(str[i])]++ res[Integer.parseInt(str[i])] res Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i for(int i=1; i<=n; ++i){
            System.out.println(res[i]);
        } int i=1; int i=1; i 1 i<=n i n ++i ++i i {
            System.out.println(res[i]);
        } {
            System.out.println(res[i]);
        } System.out.println(res[i]) System.out.println System.out System System.out res[i] res i 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());
        int[] res = new int[n+1];
        String[] str = br.readLine().split(" ");
        for(int i=0; i<n-1; ++i){
            res[Integer.parseInt(str[i])]++;
        }
        for(int i=1; i<=n; ++i){
            System.out.println(res[i]);
        }
    }
} 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());
        int[] res = new int[n+1];
        String[] str = br.readLine().split(" ");
        for(int i=0; i<n-1; ++i){
            res[Integer.parseInt(str[i])]++;
        }
        for(int i=1; i<=n; ++i){
            System.out.println(res[i]);
        }
    }
} 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());
        int[] res = new int[n+1];
        String[] str = br.readLine().split(" ");
        for(int i=0; i<n-1; ++i){
            res[Integer.parseInt(str[i])]++;
        }
        for(int i=1; i<=n; ++i){
            System.out.println(res[i]);
        }
    }
}
