import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String[] sarray = line.split(" ", -1);
		int n = Integer.parseInt(sarray[0]);
		int m = Integer.parseInt(sarray[1]);
		int l = Integer.parseInt(sarray[2]);
		int matrixA[][] = new int[n][m];
		int matrixB[][] = new int[m][l];
		long matrixC[][] = new long[n][l];
		for(int i = 0; i < n; i++){//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < m; i++){//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < n; i++){//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		}
		for(int i = 0; i < n; i++){//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		}
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String[] sarray = line.split(" ", -1);
		int n = Integer.parseInt(sarray[0]);
		int m = Integer.parseInt(sarray[1]);
		int l = Integer.parseInt(sarray[2]);
		int matrixA[][] = new int[n][m];
		int matrixB[][] = new int[m][l];
		long matrixC[][] = new long[n][l];
		for(int i = 0; i < n; i++){//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < m; i++){//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < n; i++){//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		}
		for(int i = 0; i < n; i++){//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String[] sarray = line.split(" ", -1);
		int n = Integer.parseInt(sarray[0]);
		int m = Integer.parseInt(sarray[1]);
		int l = Integer.parseInt(sarray[2]);
		int matrixA[][] = new int[n][m];
		int matrixB[][] = new int[m][l];
		long matrixC[][] = new long[n][l];
		for(int i = 0; i < n; i++){//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < m; i++){//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < n; i++){//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		}
		for(int i = 0; i < n; i++){//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String[] sarray = line.split(" ", -1);
		int n = Integer.parseInt(sarray[0]);
		int m = Integer.parseInt(sarray[1]);
		int l = Integer.parseInt(sarray[2]);
		int matrixA[][] = new int[n][m];
		int matrixB[][] = new int[m][l];
		long matrixC[][] = new long[n][l];
		for(int i = 0; i < n; i++){//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < m; i++){//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < n; i++){//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		}
		for(int i = 0; i < n; i++){//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String line = reader.readLine(); line reader.readLine() reader.readLine reader String[] sarray = line.split(" ", -1); sarray line.split(" ", -1) line.split line " " -1 1 int n = Integer.parseInt(sarray[0]); n Integer.parseInt(sarray[0]) Integer.parseInt Integer sarray[0] sarray 0 int m = Integer.parseInt(sarray[1]); m Integer.parseInt(sarray[1]) Integer.parseInt Integer sarray[1] sarray 1 int l = Integer.parseInt(sarray[2]); l Integer.parseInt(sarray[2]) Integer.parseInt Integer sarray[2] sarray 2 int matrixA[][] = new int[n][m]; matrixA new int[n][m] n m int matrixB[][] = new int[m][l]; matrixB new int[m][l] m l long matrixC[][] = new long[n][l]; matrixC new long[n][l] n l for(int i = 0; i < n; i++){//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		} {//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		} String str = reader.readLine(); str reader.readLine() reader.readLine reader String[] mat = str.split(" ", -1); mat str.split(" ", -1) str.split str " " -1 1 for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				matrixA[i][j] = Integer.parseInt(mat[j]);
			} {
				matrixA[i][j] = Integer.parseInt(mat[j]);
			} matrixA[i][j] = Integer.parseInt(mat[j]) matrixA[i][j] matrixA[i] matrixA i j Integer.parseInt(mat[j]) Integer.parseInt Integer mat[j] mat j for(int i = 0; i < m; i++){//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		} {//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		} String str = reader.readLine(); str reader.readLine() reader.readLine reader String[] mat = str.split(" ", -1); mat str.split(" ", -1) str.split str " " -1 1 for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				matrixB[i][j] = Integer.parseInt(mat[j]);
			} {
				matrixB[i][j] = Integer.parseInt(mat[j]);
			} matrixB[i][j] = Integer.parseInt(mat[j]) matrixB[i][j] matrixB[i] matrixB i j Integer.parseInt(mat[j]) Integer.parseInt Integer mat[j] mat j for(int i = 0; i < n; i++){//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		} {//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		} for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				matrixC[i][j] = 0;
			} {
				matrixC[i][j] = 0;
			} matrixC[i][j] = 0 matrixC[i][j] matrixC[i] matrixC i j 0 for(int i = 0; i < n; i++){//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		} {//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		} for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			} {
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			} for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				} {
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				} matrixC[i][j] += matrixA[i][k]*matrixB[k][j] matrixC[i][j] matrixC[i] matrixC i j matrixA[i][k]*matrixB[k][j] matrixA[i][k] matrixA[i] matrixA i k matrixB[k][j] matrixB[k] matrixB k j System.out.print(matrixC[i][j]) System.out.print System.out System System.out matrixC[i][j] matrixC[i] matrixC i j if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				} j != l - 1 j l - 1 l 1 {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " {
					System.out.println();
				} System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String[] sarray = line.split(" ", -1);
		int n = Integer.parseInt(sarray[0]);
		int m = Integer.parseInt(sarray[1]);
		int l = Integer.parseInt(sarray[2]);
		int matrixA[][] = new int[n][m];
		int matrixB[][] = new int[m][l];
		long matrixC[][] = new long[n][l];
		for(int i = 0; i < n; i++){//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < m; i++){//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < n; i++){//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		}
		for(int i = 0; i < n; i++){//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String[] sarray = line.split(" ", -1);
		int n = Integer.parseInt(sarray[0]);
		int m = Integer.parseInt(sarray[1]);
		int l = Integer.parseInt(sarray[2]);
		int matrixA[][] = new int[n][m];
		int matrixB[][] = new int[m][l];
		long matrixC[][] = new long[n][l];
		for(int i = 0; i < n; i++){//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < m; i++){//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < n; i++){//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		}
		for(int i = 0; i < n; i++){//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		}
	}
} Main
import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String line = reader.readLine();
		String[] sarray = line.split(" ", -1);
		int n = Integer.parseInt(sarray[0]);
		int m = Integer.parseInt(sarray[1]);
		int l = Integer.parseInt(sarray[2]);
		int matrixA[][] = new int[n][m];
		int matrixB[][] = new int[m][l];
		long matrixC[][] = new long[n][l];
		for(int i = 0; i < n; i++){//??????A???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < m; j++){
				matrixA[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < m; i++){//??????B???????????????
			String str = reader.readLine();
			String[] mat = str.split(" ", -1);
			for(int j = 0; j < l; j++){
				matrixB[i][j] = Integer.parseInt(mat[j]);
			}
		}
		for(int i = 0; i < n; i++){//??????C????????????
			for(int j = 0; j < l; j++){
				matrixC[i][j] = 0;
			}
		}
		for(int i = 0; i < n; i++){//??????A,??????B??????
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					matrixC[i][j] += matrixA[i][k]*matrixB[k][j];
				}
				System.out.print(matrixC[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.println();
				}
			}
		}
	}
}