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



A = []

B = []

C = [[] for i in range(n)]



for i in range(n):

    tmp_row = list(map(int, input().split()))

    A.append(tmp_row)



for i in range(m):

    tmp_row = list(map(int, input().split()))

    B.append(tmp_row)



for i in range(n):

    line = ""

    for j in range(l):

        ab = sum([A[i][k] * B[k][j] for k in range(m)])

        line += " {0}".format(ab)

    print((line[1:]))
n, m, l = list(map(int, input().split()))



A = []

B = []

C = [[] for i in range(n)]



for i in range(n):

    tmp_row = list(map(int, input().split()))

    A.append(tmp_row)



for i in range(m):

    tmp_row = list(map(int, input().split()))

    B.append(tmp_row)



for i in range(n):

    for j in range(l):

        ab = sum([A[i][k] * B[k][j] for k in range(m)])

        C[i].append(ab)



for i in C:

    print((" ".join(map(str, i))))
n, m, l = list(map(int, input().split()))
A = []
B = []
C = [[] for i in range(n)]
for i in range(n):
    tmp_row = list(map(int, input().split()))
    A.append(tmp_row)
for i in range(m):
    tmp_row = list(map(int, input().split()))
    B.append(tmp_row)
for i in range(n):
    line = ""
    for j in range(l):
        ab = sum([A[i][k] * B[k][j] for k in range(m)])
        line += " {0}".format(ab)
    print((line[1:]))

n, m, l = list(map(int, input().split()))
A = []
B = []
C = [[] for i in range(n)]
for i in range(n):
    tmp_row = list(map(int, input().split()))
    A.append(tmp_row)
for i in range(m):
    tmp_row = list(map(int, input().split()))
    B.append(tmp_row)
for i in range(n):
    for j in range(l):
        ab = sum([A[i][k] * B[k][j] for k in range(m)])
        C[i].append(ab)
for i in C:
    print((" ".join(map(str, i))))

-    line = "" -        line += " {0}".format(ab) -    print((line[1:])) +        C[i].append(ab) +for i in C: +    print((" ".join(map(str, i))))