import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);

		int[][] A = new int[n][m];
		int[][] B = new int[m][l];

		for(int i = 0; i < n; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		}
		for(int i = 0; i < m; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		}
		long c = 0;
		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);

		int[][] A = new int[n][m];
		int[][] B = new int[m][l];

		for(int i = 0; i < n; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		}
		for(int i = 0; i < m; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		}
		long c = 0;
		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		}
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);

		int[][] A = new int[n][m];
		int[][] B = new int[m][l];

		for(int i = 0; i < n; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		}
		for(int i = 0; i < m; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		}
		long c = 0;
		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);

		int[][] A = new int[n][m];
		int[][] B = new int[m][l];

		for(int i = 0; i < n; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		}
		for(int i = 0; i < m; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		}
		long c = 0;
		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(str[0]); n Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int m = Integer.parseInt(str[1]); m Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int l = Integer.parseInt(str[2]); l Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 int[][] A = new int[n][m]; A new int[n][m] n m int[][] B = new int[m][l]; B new int[m][l] m l for(int i = 0; i < n; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		} {
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		} str = br.readLine().split(" ") str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				A[i][j]= Integer.parseInt(str[j]);
			} {
				A[i][j]= Integer.parseInt(str[j]);
			} A[i][j]= Integer.parseInt(str[j]) A[i][j] A[i] A i j Integer.parseInt(str[j]) Integer.parseInt Integer str[j] str j for(int i = 0; i < m; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		} {
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		} str = br.readLine().split(" ") str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				B[i][j]= Integer.parseInt(str[j]);
			} {
				B[i][j]= Integer.parseInt(str[j]);
			} B[i][j]= Integer.parseInt(str[j]) B[i][j] B[i] B i j Integer.parseInt(str[j]) Integer.parseInt Integer str[j] str j long c = 0; c 0 for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		} {
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		} for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			} {
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			} c = 0 c 0 for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					c += A[i][k] * B[k][j];
				} {
					c += A[i][k] * B[k][j];
				} c += A[i][k] * B[k][j] c A[i][k] * B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				} j == (l - 1) j (l - 1) l 1 {
					System.out.print(c);
				} System.out.print(c) System.out.print System.out System System.out c {
					System.out.print(c + " ");
				} System.out.print(c + " ") System.out.print System.out System System.out c + " " c " " 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 br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);

		int[][] A = new int[n][m];
		int[][] B = new int[m][l];

		for(int i = 0; i < n; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		}
		for(int i = 0; i < m; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		}
		long c = 0;
		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		}
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);

		int[][] A = new int[n][m];
		int[][] B = new int[m][l];

		for(int i = 0; i < n; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		}
		for(int i = 0; i < m; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		}
		long c = 0;
		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] str = br.readLine().split(" ");
		int n = Integer.parseInt(str[0]);
		int m = Integer.parseInt(str[1]);
		int l = Integer.parseInt(str[2]);

		int[][] A = new int[n][m];
		int[][] B = new int[m][l];

		for(int i = 0; i < n; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				A[i][j]= Integer.parseInt(str[j]);
			}
		}
		for(int i = 0; i < m; i++){
			str = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				B[i][j]= Integer.parseInt(str[j]);
			}
		}
		long c = 0;
		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){
				c = 0;
				for(int k = 0; k < m; k++){
					c += A[i][k] * B[k][j];
				}
				if(j == (l - 1)){
					System.out.print(c);
				}else{
					System.out.print(c + " ");
				}
			}
			System.out.println();
		}
	}
}