

n1,n2,n3 = list(map(int,input().split(" ")))



list1 = [list(map(int,input().split(" "))) for _ in range(n1)]

list2 = [list(map(int,input().split(" "))) for _ in range(n2)]



mat = [[0 for _ in range(n3)] for _ in range(n1)]

for i in range(n1):

	for j in range(n3):

		for k in range(n2):

			mat[i][j] += list1[i][k] * list2[k][j]



for m in mat:

	print((*m))



n1,n2,n3 = list(map(int,input().split(" ")))



list1 = [list(map(int,input().split(" "))) for _ in range(n1)]

list2 = [list(map(int,input().split(" "))) for _ in range(n2)]



mat = [[0 for _ in range(n3)] for _ in range(n1)]



for i in range(n1):

	for j in range(n3):

		mat[i][j]= str(sum(list1[i][k] * list2[k][j] for k in range(n2)))



for m in mat:

	print((*m))



n1, n2, n3 = list(map(int, input().split(" ")))
list1 = [list(map(int, input().split(" "))) for _ in range(n1)]
list2 = [list(map(int, input().split(" "))) for _ in range(n2)]
mat = [[0 for _ in range(n3)] for _ in range(n1)]
for i in range(n1):
    for j in range(n3):
        for k in range(n2):
            mat[i][j] += list1[i][k] * list2[k][j]
for m in mat:
    print((*m))

n1, n2, n3 = list(map(int, input().split(" ")))
list1 = [list(map(int, input().split(" "))) for _ in range(n1)]
list2 = [list(map(int, input().split(" "))) for _ in range(n2)]
mat = [[0 for _ in range(n3)] for _ in range(n1)]
for i in range(n1):
    for j in range(n3):
        mat[i][j] = str(sum(list1[i][k] * list2[k][j] for k in range(n2)))
for m in mat:
    print((*m))

-        for k in range(n2): -            mat[i][j] += list1[i][k] * list2[k][j] +        mat[i][j] = str(sum(list1[i][k] * list2[k][j] for k in range(n2)))