python版
n, m, l = map(int, input().split())
mn, mx = 257, -1
count = [0] * (l)
for i in range(n):
tmp = list(map(int, input().split(' ')))
for j in tmp:
count[j] += 1
ans = []
for i in range(l):
ans.append(count[i])
for i in ans:
print(i, end=' ')