n,m,k=map(int,raw_input().strip().split())
a=[]
b=[]
for i in range(n):
v = map(int,raw_input().strip().split())
a.append(v)
for i in range(m):
v = map(int,raw_input().strip().split())
b.append(v)
c = [[0 for i in range(k)] for j in range(n)]
for i in range(n):
for j in range(k):
for h in range(m):
c[i][j] += a[i][h]*b[h][j]
for i in range(n):
for j in range(k):
print c[i][j],
print