import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String str = scanner.nextLine();
String[] num = str.split(" ");
ArrayList<Integer> ints = new ArrayList<>();
for (String x : num) {
ints.add(Integer.parseInt(x));
}
int n = ints.get(0);
int L = ints.get(2);
int[] result = new int[L];
for (int i = 0; i < L; i++) {
result[i] = 0;
}
for (int i = 0; i < n; i++) {
str = scanner.nextLine();
num = str.split(" ");
for (String x : num) {
result[Integer.parseInt(x)] = result[Integer.parseInt(x)] + 1;
}
}
for (int i = 0; i < L-1; i++) {
System.out.print(result[i]+" ");
}
System.out.print(result[L-1]);
}
}