import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++){
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		}
		sc.close();

		int[] ret = getProcess(N, A);

		for(int i=0; i<ret.length; i++){
			System.out.println(ret[i]);
		}
	}

	public static int[] getProcess(int N, int[] A){
		int[] ret = new int[N];
		for(int i=0; i<ret.length; i++){
			ret[i] = 0;
		}

		for(int i=0; i<A.length; i++){
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		}

		return ret;
	}


} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++){
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		}
		sc.close();

		int[] ret = getProcess(N, A);

		for(int i=0; i<ret.length; i++){
			System.out.println(ret[i]);
		}
	}

	public static int[] getProcess(int N, int[] A){
		int[] ret = new int[N];
		for(int i=0; i<ret.length; i++){
			ret[i] = 0;
		}

		for(int i=0; i<A.length; i++){
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		}

		return ret;
	}


} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++){
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		}
		sc.close();

		int[] ret = getProcess(N, A);

		for(int i=0; i<ret.length; i++){
			System.out.println(ret[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++){
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		}
		sc.close();

		int[] ret = getProcess(N, A);

		for(int i=0; i<ret.length; i++){
			System.out.println(ret[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] A = new int[N]; A new int[N] N for(int i=0; i<N; i++){
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		} {
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		} if(i==0){
				A[0] = 0;
				continue;
			} i==0 i 0 {
				A[0] = 0;
				continue;
			} A[0] = 0 A[0] A 0 0 continue; A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int[] ret = getProcess(N, A); ret getProcess(N, A) getProcess N A for(int i=0; i<ret.length; i++){
			System.out.println(ret[i]);
		} int i=0; int i=0; i 0 i<ret.length i ret.length ret ret.length i++ i++ i {
			System.out.println(ret[i]);
		} {
			System.out.println(ret[i]);
		} System.out.println(ret[i]) System.out.println System.out System System.out ret[i] ret i String[] args args public static int[] getProcess(int N, int[] A){
		int[] ret = new int[N];
		for(int i=0; i<ret.length; i++){
			ret[i] = 0;
		}

		for(int i=0; i<A.length; i++){
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		}

		return ret;
	} getProcess {
		int[] ret = new int[N];
		for(int i=0; i<ret.length; i++){
			ret[i] = 0;
		}

		for(int i=0; i<A.length; i++){
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		}

		return ret;
	} int[] ret = new int[N]; ret new int[N] N for(int i=0; i<ret.length; i++){
			ret[i] = 0;
		} int i=0; int i=0; i 0 i<ret.length i ret.length ret ret.length i++ i++ i {
			ret[i] = 0;
		} {
			ret[i] = 0;
		} ret[i] = 0 ret[i] ret i 0 for(int i=0; i<A.length; i++){
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		} int i=0; int i=0; i 0 i<A.length i A.length A A.length i++ i++ i {
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		} {
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		} if(A[i]==0){
				continue;
			} A[i]==0 A[i] A i 0 {
				continue;
			} continue; ret[ A[i]-1 ] ++ ret[ A[i]-1 ] ret A[i]-1 A[i] A i 1 return ret; ret int N N int[] A A public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++){
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		}
		sc.close();

		int[] ret = getProcess(N, A);

		for(int i=0; i<ret.length; i++){
			System.out.println(ret[i]);
		}
	}

	public static int[] getProcess(int N, int[] A){
		int[] ret = new int[N];
		for(int i=0; i<ret.length; i++){
			ret[i] = 0;
		}

		for(int i=0; i<A.length; i++){
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		}

		return ret;
	}


} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++){
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		}
		sc.close();

		int[] ret = getProcess(N, A);

		for(int i=0; i<ret.length; i++){
			System.out.println(ret[i]);
		}
	}

	public static int[] getProcess(int N, int[] A){
		int[] ret = new int[N];
		for(int i=0; i<ret.length; i++){
			ret[i] = 0;
		}

		for(int i=0; i<A.length; i++){
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		}

		return ret;
	}


} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++){
			if(i==0){
				A[0] = 0;
				continue;
			}
			A[i] = sc.nextInt();
		}
		sc.close();

		int[] ret = getProcess(N, A);

		for(int i=0; i<ret.length; i++){
			System.out.println(ret[i]);
		}
	}

	public static int[] getProcess(int N, int[] A){
		int[] ret = new int[N];
		for(int i=0; i<ret.length; i++){
			ret[i] = 0;
		}

		for(int i=0; i<A.length; i++){
			if(A[i]==0){
				continue;
			}
			ret[ A[i]-1 ] ++;
		}

		return ret;
	}


}