import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String tmp = scan.nextLine();
	  int n = Integer.parseInt(tmp.split(" ")[0]);
		int m = Integer.parseInt(tmp.split(" ")[1]);
		int l = Integer.parseInt(tmp.split(" ")[2]);
		long[][] A = new long[n][m];
		long[][] B = new long[m][l];
		long[][] rs = new long[n][l];

		for (int i = 0; i < n; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		}

		for (int i = 0; i < m; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		}

		long sum = 0;
		int cnt = 0;

		while (cnt < n) {
			for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			}
			cnt++;
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
}
 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String tmp = scan.nextLine();
	  int n = Integer.parseInt(tmp.split(" ")[0]);
		int m = Integer.parseInt(tmp.split(" ")[1]);
		int l = Integer.parseInt(tmp.split(" ")[2]);
		long[][] A = new long[n][m];
		long[][] B = new long[m][l];
		long[][] rs = new long[n][l];

		for (int i = 0; i < n; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		}

		for (int i = 0; i < m; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		}

		long sum = 0;
		int cnt = 0;

		while (cnt < n) {
			for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			}
			cnt++;
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String tmp = scan.nextLine();
	  int n = Integer.parseInt(tmp.split(" ")[0]);
		int m = Integer.parseInt(tmp.split(" ")[1]);
		int l = Integer.parseInt(tmp.split(" ")[2]);
		long[][] A = new long[n][m];
		long[][] B = new long[m][l];
		long[][] rs = new long[n][l];

		for (int i = 0; i < n; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		}

		for (int i = 0; i < m; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		}

		long sum = 0;
		int cnt = 0;

		while (cnt < n) {
			for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			}
			cnt++;
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		String tmp = scan.nextLine();
	  int n = Integer.parseInt(tmp.split(" ")[0]);
		int m = Integer.parseInt(tmp.split(" ")[1]);
		int l = Integer.parseInt(tmp.split(" ")[2]);
		long[][] A = new long[n][m];
		long[][] B = new long[m][l];
		long[][] rs = new long[n][l];

		for (int i = 0; i < n; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		}

		for (int i = 0; i < m; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		}

		long sum = 0;
		int cnt = 0;

		while (cnt < n) {
			for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			}
			cnt++;
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String tmp = scan.nextLine(); tmp scan.nextLine() scan.nextLine scan int n = Integer.parseInt(tmp.split(" ")[0]); n Integer.parseInt(tmp.split(" ")[0]) Integer.parseInt Integer tmp.split(" ")[0] tmp.split(" ") tmp.split tmp " " 0 int m = Integer.parseInt(tmp.split(" ")[1]); m Integer.parseInt(tmp.split(" ")[1]) Integer.parseInt Integer tmp.split(" ")[1] tmp.split(" ") tmp.split tmp " " 1 int l = Integer.parseInt(tmp.split(" ")[2]); l Integer.parseInt(tmp.split(" ")[2]) Integer.parseInt Integer tmp.split(" ")[2] tmp.split(" ") tmp.split tmp " " 2 long[][] A = new long[n][m]; A new long[n][m] n m long[][] B = new long[m][l]; B new long[m][l] m l long[][] rs = new long[n][l]; rs new long[n][l] n l for (int i = 0; i < n; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		} {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		} String num = scan.nextLine(); num scan.nextLine() scan.nextLine scan for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			} {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			} int tmpLine = Integer.parseInt(num.split(" ")[j]); tmpLine Integer.parseInt(num.split(" ")[j]) Integer.parseInt Integer num.split(" ")[j] num.split(" ") num.split num " " j A[i][j] = tmpLine A[i][j] A[i] A i j tmpLine for (int i = 0; i < m; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		} {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		} String num = scan.nextLine(); num scan.nextLine() scan.nextLine scan for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			} {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			} int tmpLine = Integer.parseInt(num.split(" ")[j]); tmpLine Integer.parseInt(num.split(" ")[j]) Integer.parseInt Integer num.split(" ")[j] num.split(" ") num.split num " " j B[i][j] = tmpLine B[i][j] B[i] B i j tmpLine long sum = 0; sum 0 int cnt = 0; cnt 0 while (cnt < n) {
			for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			}
			cnt++;
		} cnt < n cnt n {
			for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			}
			cnt++;
		} for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			} int i = 0; int i = 0; i 0 i < l i l i++ i++ i {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			} {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			} for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
					sum += A[cnt][j] * B[j][i];
				} {
					sum += A[cnt][j] * B[j][i];
				} sum += A[cnt][j] * B[j][i] sum A[cnt][j] * B[j][i] A[cnt][j] A[cnt] A cnt j B[j][i] B[j] B j i rs[cnt][i] = sum rs[cnt][i] rs[cnt] rs cnt i sum sum = 0 sum 0 cnt++ cnt for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			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++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println("");
		} {
			for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println("");
		} for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			} {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			} System.out.print(rs[i][j]) System.out.print System.out System System.out rs[i][j] rs[i] rs i j if(j != l - 1){
					System.out.print(" ");
				} 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 System System.out "" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String tmp = scan.nextLine();
	  int n = Integer.parseInt(tmp.split(" ")[0]);
		int m = Integer.parseInt(tmp.split(" ")[1]);
		int l = Integer.parseInt(tmp.split(" ")[2]);
		long[][] A = new long[n][m];
		long[][] B = new long[m][l];
		long[][] rs = new long[n][l];

		for (int i = 0; i < n; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		}

		for (int i = 0; i < m; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		}

		long sum = 0;
		int cnt = 0;

		while (cnt < n) {
			for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			}
			cnt++;
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String tmp = scan.nextLine();
	  int n = Integer.parseInt(tmp.split(" ")[0]);
		int m = Integer.parseInt(tmp.split(" ")[1]);
		int l = Integer.parseInt(tmp.split(" ")[2]);
		long[][] A = new long[n][m];
		long[][] B = new long[m][l];
		long[][] rs = new long[n][l];

		for (int i = 0; i < n; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		}

		for (int i = 0; i < m; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		}

		long sum = 0;
		int cnt = 0;

		while (cnt < n) {
			for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			}
			cnt++;
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
} Main
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String tmp = scan.nextLine();
	  int n = Integer.parseInt(tmp.split(" ")[0]);
		int m = Integer.parseInt(tmp.split(" ")[1]);
		int l = Integer.parseInt(tmp.split(" ")[2]);
		long[][] A = new long[n][m];
		long[][] B = new long[m][l];
		long[][] rs = new long[n][l];

		for (int i = 0; i < n; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < m; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				A[i][j] = tmpLine;
			}
		}

		for (int i = 0; i < m; i++) {
			String num = scan.nextLine();
			for (int j = 0; j < l; j++) {
				int tmpLine = Integer.parseInt(num.split(" ")[j]);
				B[i][j] = tmpLine;
			}
		}

		long sum = 0;
		int cnt = 0;

		while (cnt < n) {
			for (int i = 0; i < l; i++) {
				for (int j = 0; j < m; j++) {
					sum += A[cnt][j] * B[j][i];
				}
				rs[cnt][i] = sum;
				sum = 0;
			}
			cnt++;
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				System.out.print(rs[i][j]);
				if(j != l - 1){
					System.out.print(" ");
				}
			}
			System.out.println("");
		}
	}
}

