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

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String[] matrixFormat = (input.readLine()).split("\\s");

		int n = Integer.parseInt(matrixFormat[0]);
		int m = Integer.parseInt(matrixFormat[1]);
		int l = Integer.parseInt(matrixFormat[2]);

		int[][] matrixA = new int[n][m];
		int[][] matrixB = new int[m][l];
		long[][] matrixC = new long[n][l];

		String[] dataMatrixA = null;
		for (int i = 0; i < n; i++) {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		}

		String[] dataMatrixB = null;
		for (int k = 0; k < m; k++) {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			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 {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String[] matrixFormat = (input.readLine()).split("\\s");

		int n = Integer.parseInt(matrixFormat[0]);
		int m = Integer.parseInt(matrixFormat[1]);
		int l = Integer.parseInt(matrixFormat[2]);

		int[][] matrixA = new int[n][m];
		int[][] matrixB = new int[m][l];
		long[][] matrixC = new long[n][l];

		String[] dataMatrixA = null;
		for (int i = 0; i < n; i++) {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		}

		String[] dataMatrixB = null;
		for (int k = 0; k < m; k++) {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			System.out.println();
		}
	}
} Main public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String[] matrixFormat = (input.readLine()).split("\\s");

		int n = Integer.parseInt(matrixFormat[0]);
		int m = Integer.parseInt(matrixFormat[1]);
		int l = Integer.parseInt(matrixFormat[2]);

		int[][] matrixA = new int[n][m];
		int[][] matrixB = new int[m][l];
		long[][] matrixC = new long[n][l];

		String[] dataMatrixA = null;
		for (int i = 0; i < n; i++) {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		}

		String[] dataMatrixB = null;
		for (int k = 0; k < m; k++) {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			System.out.println();
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String[] matrixFormat = (input.readLine()).split("\\s");

		int n = Integer.parseInt(matrixFormat[0]);
		int m = Integer.parseInt(matrixFormat[1]);
		int l = Integer.parseInt(matrixFormat[2]);

		int[][] matrixA = new int[n][m];
		int[][] matrixB = new int[m][l];
		long[][] matrixC = new long[n][l];

		String[] dataMatrixA = null;
		for (int i = 0; i < n; i++) {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		}

		String[] dataMatrixB = null;
		for (int k = 0; k < m; k++) {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			System.out.println();
		}
	} BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) String[] matrixFormat = (input.readLine()).split("\\s"); matrixFormat (input.readLine()).split("\\s") (input.readLine()).split (input.readLine()) input.readLine input "\\s" int n = Integer.parseInt(matrixFormat[0]); n Integer.parseInt(matrixFormat[0]) Integer.parseInt Integer matrixFormat[0] matrixFormat 0 int m = Integer.parseInt(matrixFormat[1]); m Integer.parseInt(matrixFormat[1]) Integer.parseInt Integer matrixFormat[1] matrixFormat 1 int l = Integer.parseInt(matrixFormat[2]); l Integer.parseInt(matrixFormat[2]) Integer.parseInt Integer matrixFormat[2] matrixFormat 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 String[] dataMatrixA = null; dataMatrixA null for (int i = 0; i < n; i++) {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		} {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		} dataMatrixA = (input.readLine()).split("\\s") dataMatrixA (input.readLine()).split("\\s") (input.readLine()).split (input.readLine()) input.readLine input "\\s" for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			} {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			} matrixA[i][j] = Integer.parseInt(dataMatrixA[j]) matrixA[i][j] matrixA[i] matrixA i j Integer.parseInt(dataMatrixA[j]) Integer.parseInt Integer dataMatrixA[j] dataMatrixA j String[] dataMatrixB = null; dataMatrixB null for (int k = 0; k < m; k++) {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		} {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		} dataMatrixB = (input.readLine()).split("\\s") dataMatrixB (input.readLine()).split("\\s") (input.readLine()).split (input.readLine()) input.readLine input "\\s" for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			} int h = 0; int h = 0; h 0 h < l h l h++ h++ h {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			} {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			} matrixB[k][h] = Integer.parseInt(dataMatrixB[h]) matrixB[k][h] matrixB[k] matrixB k h Integer.parseInt(dataMatrixB[h]) Integer.parseInt Integer dataMatrixB[h] dataMatrixB h for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		} {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		} for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			} {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			} for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				} int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				} {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				} matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]) matrixC[i][k] matrixC[i] matrixC i k (matrixA[i][j] * matrixB[j][k]) matrixA[i][j] matrixA[i] matrixA i j matrixB[j][k] matrixB[j] matrixB j k for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			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++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			System.out.println();
		} {
			for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			System.out.println();
		} for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			} {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			} if (j > 0) {
					System.out.print(" ");
				} j > 0 j 0 {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " System.out.print(matrixC[i][j]) System.out.print System.out System System.out matrixC[i][j] matrixC[i] matrixC i j 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 {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String[] matrixFormat = (input.readLine()).split("\\s");

		int n = Integer.parseInt(matrixFormat[0]);
		int m = Integer.parseInt(matrixFormat[1]);
		int l = Integer.parseInt(matrixFormat[2]);

		int[][] matrixA = new int[n][m];
		int[][] matrixB = new int[m][l];
		long[][] matrixC = new long[n][l];

		String[] dataMatrixA = null;
		for (int i = 0; i < n; i++) {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		}

		String[] dataMatrixB = null;
		for (int k = 0; k < m; k++) {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			System.out.println();
		}
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String[] matrixFormat = (input.readLine()).split("\\s");

		int n = Integer.parseInt(matrixFormat[0]);
		int m = Integer.parseInt(matrixFormat[1]);
		int l = Integer.parseInt(matrixFormat[2]);

		int[][] matrixA = new int[n][m];
		int[][] matrixB = new int[m][l];
		long[][] matrixC = new long[n][l];

		String[] dataMatrixA = null;
		for (int i = 0; i < n; i++) {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		}

		String[] dataMatrixB = null;
		for (int k = 0; k < m; k++) {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			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 {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		String[] matrixFormat = (input.readLine()).split("\\s");

		int n = Integer.parseInt(matrixFormat[0]);
		int m = Integer.parseInt(matrixFormat[1]);
		int l = Integer.parseInt(matrixFormat[2]);

		int[][] matrixA = new int[n][m];
		int[][] matrixB = new int[m][l];
		long[][] matrixC = new long[n][l];

		String[] dataMatrixA = null;
		for (int i = 0; i < n; i++) {
			dataMatrixA = (input.readLine()).split("\\s");
			for (int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(dataMatrixA[j]);
			}
		}

		String[] dataMatrixB = null;
		for (int k = 0; k < m; k++) {
			dataMatrixB = (input.readLine()).split("\\s");
			for (int h = 0; h < l; h++) {
				matrixB[k][h] = Integer.parseInt(dataMatrixB[h]);
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				for (int k = 0; k < l; k++) {
					matrixC[i][k] += (matrixA[i][j] * matrixB[j][k]);
				}
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				if (j > 0) {
					System.out.print(" ");
				}
				System.out.print(matrixC[i][j]);
			}
			System.out.println();
		}
	}
}

