if __name__ == '__main__':

	n,m,l=list(map(int,input().split()))

	a=[list(map(int,input().split())) for _ in range(n)]

	b=list(zip(*[list(map(int,input().split())) for _ in range(m)]))

	sums=[i[k]*j[k] for i in a for j in b for k in range(m)]

	c=[sum(sums[i:i+m]) for i in [j for j in range(len(sums)) if j%m==0]]

	for i in range(len(c)):

		if (i+1)%l==0: print(c[i])

		else: print(c[i], end=' ')
if __name__ == '__main__':

	n,m,l=list(map(int,input().split()))

	a=[list(map(int,input().split())) for _ in [0]*n]

	b=list(zip(*[list(map(int,input().split())) for _ in [0]*m]))

	sums=[i[k]*j[k] for i in a for j in b for k in range(m)]

	c=[sum(sums[i:i+m]) for i in [j for j in range(len(sums)) if j%m==0]]

	for i in range(len(c)):

		if (i+1)%l==0: print(c[i])

		else: print(c[i], end=' ')
if __name__ == "__main__":
    n, m, l = list(map(int, input().split()))
    a = [list(map(int, input().split())) for _ in range(n)]
    b = list(zip(*[list(map(int, input().split())) for _ in range(m)]))
    sums = [i[k] * j[k] for i in a for j in b for k in range(m)]
    c = [sum(sums[i : i + m]) for i in [j for j in range(len(sums)) if j % m == 0]]
    for i in range(len(c)):
        if (i + 1) % l == 0:
            print(c[i])
        else:
            print(c[i], end=" ")

if __name__ == "__main__":
    n, m, l = list(map(int, input().split()))
    a = [list(map(int, input().split())) for _ in [0] * n]
    b = list(zip(*[list(map(int, input().split())) for _ in [0] * m]))
    sums = [i[k] * j[k] for i in a for j in b for k in range(m)]
    c = [sum(sums[i : i + m]) for i in [j for j in range(len(sums)) if j % m == 0]]
    for i in range(len(c)):
        if (i + 1) % l == 0:
            print(c[i])
        else:
            print(c[i], end=" ")

-    a = [list(map(int, input().split())) for _ in range(n)] -    b = list(zip(*[list(map(int, input().split())) for _ in range(m)])) +    a = [list(map(int, input().split())) for _ in [0] * n] +    b = list(zip(*[list(map(int, input().split())) for _ in [0] * m]))