import sys
while True:
    try:
        x = int(input().strip())
        y = int(input().strip())
        z = int(input().strip())
        #分别保存A,B矩阵
        A = []
        for i in range(x):
            A.append(list(map(int,input().strip().split())))
        B = []
#         print(A)
        for j in range(y):
            B.append(list(map(int,input().strip().split())))
#         print(B)
        #计算结果
        SUM = [] 
        for i in range(x):
            SUM.append([0 for i in range(z)])
            for j in range(z):
                for k in range(y):
                    SUM[i][j] += A[i][k] * B[k][j]
        for i in range(len(SUM)):
            print(" ".join(list(map(str,SUM[i]))))
    except:
#         print(sys.exc_info())
        break