+1,不知道是不是不喜欢python答题者,样例边界都考虑了,还是0%
#coding=utf-8
import sys
if __name__ == "__main__":
m = int(sys.stdin.readline().strip())
n = int(sys.stdin.readline().strip())
t = int(sys.stdin.readline().strip())
if m == 0 or n == 0 or t == 0:
print(0)
x = [[0] * n for _ in range(m)]
y = [[0] * t for _ in range(n)]
ans = [[0] * t for _ in range(m)]
for i in range(m):
line = sys.stdin.readline().strip()
values = list(map(int, line.split()))
for j in range(len(values)):
x[i][j] = values[j]
for i in range(n):
line = sys.stdin.readline().strip()
value = list(map(int, line.split()))
for j in range(len(value)):
y[i][j] = value[j]
for i in range(m):
for j in range(t):
for k in range(n):
ans[i][j] += x[i][k] * y [k][j]
for i in range(m):
tmp = ''
for j in range(t):
tmp += str(ans[i][j])
tmp += ' '
print(tmp[:-1])