public class Main { public static void main(String[] args) { Scanner s=new Scanner(System.in); int n=s.nextInt(); int m=s.nextInt(); int L=s.nextInt(); int[] arr=new int[L]; for(int i=0;i<m*n;i++){ int temp=s.nextInt(); arr[temp]++; } for(int j=0;j<L;j++){ System.out.print(arr[j]+" "); } } }