import java.util.*;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();        
        int[] vote = new int[N];
        int[] A = new int[N - 1];      
        for (int i = 0; i < N - 1; i++) {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        }
        stdIn.close();
        for (int i = 0; i < N; i++) {
            System.out.println(vote[i]);
        }

    }
} import java.util.*; util.* java public class Main {
 
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();        
        int[] vote = new int[N];
        int[] A = new int[N - 1];      
        for (int i = 0; i < N - 1; i++) {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        }
        stdIn.close();
        for (int i = 0; i < N; i++) {
            System.out.println(vote[i]);
        }

    }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();        
        int[] vote = new int[N];
        int[] A = new int[N - 1];      
        for (int i = 0; i < N - 1; i++) {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        }
        stdIn.close();
        for (int i = 0; i < N; i++) {
            System.out.println(vote[i]);
        }

    } main {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();        
        int[] vote = new int[N];
        int[] A = new int[N - 1];      
        for (int i = 0; i < N - 1; i++) {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        }
        stdIn.close();
        for (int i = 0; i < N; i++) {
            System.out.println(vote[i]);
        }

    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int[] vote = new int[N]; vote new int[N] N int[] A = new int[N - 1]; A new int[N - 1] N - 1 N 1 for (int i = 0; i < N - 1; i++) {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        } {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        } A[i] = stdIn.nextInt() A[i] A i stdIn.nextInt() stdIn.nextInt stdIn vote[A[i] - 1]++ vote[A[i] - 1] vote A[i] - 1 A[i] A i 1 stdIn.close() stdIn.close stdIn for (int i = 0; i < N; i++) {
            System.out.println(vote[i]);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            System.out.println(vote[i]);
        } {
            System.out.println(vote[i]);
        } System.out.println(vote[i]) System.out.println System.out System System.out vote[i] vote i String[] args args public class Main {
 
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();        
        int[] vote = new int[N];
        int[] A = new int[N - 1];      
        for (int i = 0; i < N - 1; i++) {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        }
        stdIn.close();
        for (int i = 0; i < N; i++) {
            System.out.println(vote[i]);
        }

    }
} public class Main {
 
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();        
        int[] vote = new int[N];
        int[] A = new int[N - 1];      
        for (int i = 0; i < N - 1; i++) {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        }
        stdIn.close();
        for (int i = 0; i < N; i++) {
            System.out.println(vote[i]);
        }

    }
} Main
import java.util.*;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();        
        int[] vote = new int[N];
        int[] A = new int[N - 1];      
        for (int i = 0; i < N - 1; i++) {
            A[i] = stdIn.nextInt();
            vote[A[i] - 1]++;
        }
        stdIn.close();
        for (int i = 0; i < N; i++) {
            System.out.println(vote[i]);
        }

    }
}