#用list(map(int,string))可以将list中的每个字符都变成整数型 #不可以使用numpy,在牛客网中只能使用标准库,为了防止作弊 while True: try: x,y,z=int(input()),int(input()),int(input()) A,B,C=[],[],[] for i in range(x): A.append(list(map(int, input().strip().split()))) for i in range(y): B.append(list(map(int, input().strip().split()))) for i in range(x): C1 = [] for j in range(z): C1.append(0) C.append(C1) for i in range(x): for j in range(z): for k in range(y): C[i][j]=C[i][j]+A[i][k]*B[k][j] for inner_list in C: for element in inner_list: print(element,end=' ') print() except: break