import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		
		int[] leadingNum = new int[n];
		
		int index = 0;
		for(int i =0;i<n-1;i++) {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		}
		for (int i : leadingNum) {
			System.out.println(i);
        }
    }

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		
		int[] leadingNum = new int[n];
		
		int index = 0;
		for(int i =0;i<n-1;i++) {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		}
		for (int i : leadingNum) {
			System.out.println(i);
        }
    }

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		
		int[] leadingNum = new int[n];
		
		int index = 0;
		for(int i =0;i<n-1;i++) {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		}
		for (int i : leadingNum) {
			System.out.println(i);
        }
    } main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		
		int[] leadingNum = new int[n];
		
		int index = 0;
		for(int i =0;i<n-1;i++) {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		}
		for (int i : leadingNum) {
			System.out.println(i);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int[] leadingNum = new int[n]; leadingNum new int[n] n int index = 0; index 0 for(int i =0;i<n-1;i++) {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		} int i =0; int i =0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		} {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		} index = scanner.nextInt() index scanner.nextInt() scanner.nextInt scanner leadingNum[index-1]++ leadingNum[index-1] leadingNum index-1 index 1 for (int i : leadingNum) {
			System.out.println(i);
        } int i leadingNum {
			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) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		
		int[] leadingNum = new int[n];
		
		int index = 0;
		for(int i =0;i<n-1;i++) {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		}
		for (int i : leadingNum) {
			System.out.println(i);
        }
    }

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		
		int[] leadingNum = new int[n];
		
		int index = 0;
		for(int i =0;i<n-1;i++) {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		}
		for (int i : leadingNum) {
			System.out.println(i);
        }
    }

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		
		int[] leadingNum = new int[n];
		
		int index = 0;
		for(int i =0;i<n-1;i++) {
			index = scanner.nextInt();
			leadingNum[index-1]++;
		}
		for (int i : leadingNum) {
			System.out.println(i);
        }
    }

}