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));
		String line1 = br.readLine();
		String line2 = br.readLine();
		int counts = Integer.parseInt(line1);
		int[] bossCount = new int[counts];
		String[] bosses = line2.split(" ");
		for(int i = 0; i < counts; i++) {
			bossCount[i] = 0;
		}
		for(int i = 0; i < bosses.length; i++) {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		}
		for (int i : bossCount) {
			System.out.println(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));
		String line1 = br.readLine();
		String line2 = br.readLine();
		int counts = Integer.parseInt(line1);
		int[] bossCount = new int[counts];
		String[] bosses = line2.split(" ");
		for(int i = 0; i < counts; i++) {
			bossCount[i] = 0;
		}
		for(int i = 0; i < bosses.length; i++) {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		}
		for (int i : bossCount) {
			System.out.println(i);
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String line2 = br.readLine();
		int counts = Integer.parseInt(line1);
		int[] bossCount = new int[counts];
		String[] bosses = line2.split(" ");
		for(int i = 0; i < counts; i++) {
			bossCount[i] = 0;
		}
		for(int i = 0; i < bosses.length; i++) {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		}
		for (int i : bossCount) {
			System.out.println(i);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String line2 = br.readLine();
		int counts = Integer.parseInt(line1);
		int[] bossCount = new int[counts];
		String[] bosses = line2.split(" ");
		for(int i = 0; i < counts; i++) {
			bossCount[i] = 0;
		}
		for(int i = 0; i < bosses.length; i++) {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		}
		for (int i : bossCount) {
			System.out.println(i);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line1 = br.readLine(); line1 br.readLine() br.readLine br String line2 = br.readLine(); line2 br.readLine() br.readLine br int counts = Integer.parseInt(line1); counts Integer.parseInt(line1) Integer.parseInt Integer line1 int[] bossCount = new int[counts]; bossCount new int[counts] counts String[] bosses = line2.split(" "); bosses line2.split(" ") line2.split line2 " " for(int i = 0; i < counts; i++) {
			bossCount[i] = 0;
		} int i = 0; int i = 0; i 0 i < counts i counts i++ i++ i {
			bossCount[i] = 0;
		} {
			bossCount[i] = 0;
		} bossCount[i] = 0 bossCount[i] bossCount i 0 for(int i = 0; i < bosses.length; i++) {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		} int i = 0; int i = 0; i 0 i < bosses.length i bosses.length bosses bosses.length i++ i++ i {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		} {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		} int index = Integer.parseInt(bosses[i]); index Integer.parseInt(bosses[i]) Integer.parseInt Integer bosses[i] bosses i bossCount[index - 1] += 1 bossCount[index - 1] bossCount index - 1 index 1 1 for (int i : bossCount) {
			System.out.println(i);
		} int i bossCount {
			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) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String line2 = br.readLine();
		int counts = Integer.parseInt(line1);
		int[] bossCount = new int[counts];
		String[] bosses = line2.split(" ");
		for(int i = 0; i < counts; i++) {
			bossCount[i] = 0;
		}
		for(int i = 0; i < bosses.length; i++) {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		}
		for (int i : bossCount) {
			System.out.println(i);
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String line2 = br.readLine();
		int counts = Integer.parseInt(line1);
		int[] bossCount = new int[counts];
		String[] bosses = line2.split(" ");
		for(int i = 0; i < counts; i++) {
			bossCount[i] = 0;
		}
		for(int i = 0; i < bosses.length; i++) {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		}
		for (int i : bossCount) {
			System.out.println(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));
		String line1 = br.readLine();
		String line2 = br.readLine();
		int counts = Integer.parseInt(line1);
		int[] bossCount = new int[counts];
		String[] bosses = line2.split(" ");
		for(int i = 0; i < counts; i++) {
			bossCount[i] = 0;
		}
		for(int i = 0; i < bosses.length; i++) {
			int index = Integer.parseInt(bosses[i]);
			bossCount[index - 1] += 1;
		}
		for (int i : bossCount) {
			System.out.println(i);
		}
	}
}
