import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			

			int n = sc.nextInt();
			
			int[] mCount = new int[n];
			
			for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			}
			
			for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			}
			
			
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			

			int n = sc.nextInt();
			
			int[] mCount = new int[n];
			
			for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			}
			
			for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			}
			
			
		}
	}

} Main public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			

			int n = sc.nextInt();
			
			int[] mCount = new int[n];
			
			for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			}
			
			for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			}
			
			
		}
	} main {
		try(Scanner sc = new Scanner(System.in)) {
			

			int n = sc.nextInt();
			
			int[] mCount = new int[n];
			
			for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			}
			
			for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			}
			
			
		}
	} try(Scanner sc = new Scanner(System.in)) {
			

			int n = sc.nextInt();
			
			int[] mCount = new int[n];
			
			for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			}
			
			for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			}
			
			
		} {
			

			int n = sc.nextInt();
			
			int[] mCount = new int[n];
			
			for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			}
			
			for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			}
			
			
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] mCount = new int[n]; mCount new int[n] n for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			} int i = 1 ; int i = 1 ; i 1 i < n i n i++ i++ i {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			} {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			} int id = sc.nextInt(); id sc.nextInt() sc.nextInt sc mCount[id-1]++ mCount[id-1] mCount id-1 id 1 for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			} int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
				System.out.println(mCount[i]);
			} {
				System.out.println(mCount[i]);
			} System.out.println(mCount[i]) System.out.println System.out System System.out mCount[i] mCount i String[] args args public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			

			int n = sc.nextInt();
			
			int[] mCount = new int[n];
			
			for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			}
			
			for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			}
			
			
		}
	}

} public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			

			int n = sc.nextInt();
			
			int[] mCount = new int[n];
			
			for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			}
			
			for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			}
			
			
		}
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			

			int n = sc.nextInt();
			
			int[] mCount = new int[n];
			
			for(int i = 1 ; i < n ; i++ ) {
				
				int id = sc.nextInt();
				
				mCount[id-1]++;
			}
			
			for(int i = 0 ; i < n ; i++ ) {
				System.out.println(mCount[i]);
			}
			
			
		}
	}

}