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));
		StringBuilder sb = new StringBuilder();

		String[] line = br.readLine().split(" ");
		int n = Integer.parseInt(line[0]);
		int m = Integer.parseInt(line[1]);
		int l = Integer.parseInt(line[2]);
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long c = 0;

		for(int i = 0; i < n; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		}

		for(int i = 0; i < m; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		}

		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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}
		System.out.print(sb);
	}
} 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));
		StringBuilder sb = new StringBuilder();

		String[] line = br.readLine().split(" ");
		int n = Integer.parseInt(line[0]);
		int m = Integer.parseInt(line[1]);
		int l = Integer.parseInt(line[2]);
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long c = 0;

		for(int i = 0; i < n; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		}

		for(int i = 0; i < m; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		}

		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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}
		System.out.print(sb);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String[] line = br.readLine().split(" ");
		int n = Integer.parseInt(line[0]);
		int m = Integer.parseInt(line[1]);
		int l = Integer.parseInt(line[2]);
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long c = 0;

		for(int i = 0; i < n; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		}

		for(int i = 0; i < m; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		}

		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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}
		System.out.print(sb);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();

		String[] line = br.readLine().split(" ");
		int n = Integer.parseInt(line[0]);
		int m = Integer.parseInt(line[1]);
		int l = Integer.parseInt(line[2]);
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long c = 0;

		for(int i = 0; i < n; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		}

		for(int i = 0; i < m; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		}

		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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}
		System.out.print(sb);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(line[0]); n Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int m = Integer.parseInt(line[1]); m Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int l = Integer.parseInt(line[2]); l Integer.parseInt(line[2]) Integer.parseInt Integer line[2] line 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 long c = 0; c 0 for(int i = 0; i < n; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		} {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		} String row = br.readLine(); row br.readLine() br.readLine br String[] elem = row.split(" "); elem row.split(" ") row.split row " " for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				A[i][j] = Integer.parseInt(elem[j]);
			} {
				A[i][j] = Integer.parseInt(elem[j]);
			} A[i][j] = Integer.parseInt(elem[j]) A[i][j] A[i] A i j Integer.parseInt(elem[j]) Integer.parseInt Integer elem[j] elem j for(int i = 0; i < m; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		} {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		} String row = br.readLine(); row br.readLine() br.readLine br String[] elem = row.split(" "); elem row.split(" ") row.split row " " for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				B[i][j] = Integer.parseInt(elem[j]);
			} {
				B[i][j] = Integer.parseInt(elem[j]);
			} B[i][j] = Integer.parseInt(elem[j]) B[i][j] B[i] B i j Integer.parseInt(elem[j]) Integer.parseInt Integer elem[j] elem j 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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		} 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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		} {
			for(int j = 0; j < l; j++) {
				c = 0;
				for(int k = 0; k < m; k++) {
					c += A[i][k] * B[k][j];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		} for(int j = 0; j < l; j++) {
				c = 0;
				for(int k = 0; k < m; k++) {
					c += A[i][k] * B[k][j];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			} 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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			} {
				c = 0;
				for(int k = 0; k < m; k++) {
					c += A[i][k] * B[k][j];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			} 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 sb.append(c) sb.append sb c if(j != l-1) {
					sb.append(" ");
				} j != l-1 j l-1 l 1 {
					sb.append(" ");
				} sb.append(" ") sb.append sb " " sb.append("\n") sb.append sb "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main {

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

		String[] line = br.readLine().split(" ");
		int n = Integer.parseInt(line[0]);
		int m = Integer.parseInt(line[1]);
		int l = Integer.parseInt(line[2]);
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long c = 0;

		for(int i = 0; i < n; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		}

		for(int i = 0; i < m; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		}

		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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}
		System.out.print(sb);
	}
} public class Main {

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

		String[] line = br.readLine().split(" ");
		int n = Integer.parseInt(line[0]);
		int m = Integer.parseInt(line[1]);
		int l = Integer.parseInt(line[2]);
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long c = 0;

		for(int i = 0; i < n; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		}

		for(int i = 0; i < m; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		}

		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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}
		System.out.print(sb);
	}
} 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));
		StringBuilder sb = new StringBuilder();

		String[] line = br.readLine().split(" ");
		int n = Integer.parseInt(line[0]);
		int m = Integer.parseInt(line[1]);
		int l = Integer.parseInt(line[2]);
		int[][] A = new int[n][m];
		int[][] B = new int[m][l];
		long c = 0;

		for(int i = 0; i < n; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < m; j++) {
				A[i][j] = Integer.parseInt(elem[j]);
			}
		}

		for(int i = 0; i < m; i++) {
			String row = br.readLine();
			String[] elem = row.split(" ");
			for(int j = 0; j < l; j++) {
				B[i][j] = Integer.parseInt(elem[j]);
			}
		}

		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];
				}
				sb.append(c);
				if(j != l-1) {
					sb.append(" ");
				}
			}
			sb.append("\n");
		}
		System.out.print(sb);
	}
}