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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strAry = br.readLine().split(" ");
		int n = Integer.parseInt(strAry[0]);
		int m = Integer.parseInt(strAry[1]);
		int l = Integer.parseInt(strAry[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for (int i = 0; i < n; i++) {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long 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.InputStreamReader; InputStreamReader java.io import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strAry = br.readLine().split(" ");
		int n = Integer.parseInt(strAry[0]);
		int m = Integer.parseInt(strAry[1]);
		int l = Integer.parseInt(strAry[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for (int i = 0; i < n; i++) {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long 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[] strAry = br.readLine().split(" ");
		int n = Integer.parseInt(strAry[0]);
		int m = Integer.parseInt(strAry[1]);
		int l = Integer.parseInt(strAry[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for (int i = 0; i < n; i++) {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long 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[] strAry = br.readLine().split(" ");
		int n = Integer.parseInt(strAry[0]);
		int m = Integer.parseInt(strAry[1]);
		int l = Integer.parseInt(strAry[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for (int i = 0; i < n; i++) {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long 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[] strAry = br.readLine().split(" "); strAry br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(strAry[0]); n Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 int m = Integer.parseInt(strAry[1]); m Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 int l = Integer.parseInt(strAry[2]); l Integer.parseInt(strAry[2]) Integer.parseInt Integer strAry[2] strAry 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++) {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		} {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		} String[] matrixA = br.readLine().split(" "); matrixA br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				a[i][j] = Integer.parseInt(matrixA[j]);
			} {
				a[i][j] = Integer.parseInt(matrixA[j]);
			} a[i][j] = Integer.parseInt(matrixA[j]) a[i][j] a[i] a i j Integer.parseInt(matrixA[j]) Integer.parseInt Integer matrixA[j] matrixA j for (int i = 0; i < m; i++) {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		} {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		} String[] matrixB = br.readLine().split(" "); matrixB br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				b[i][j] = Integer.parseInt(matrixB[j]);
			} {
				b[i][j] = Integer.parseInt(matrixB[j]);
			} b[i][j] = Integer.parseInt(matrixB[j]) b[i][j] b[i] b i j Integer.parseInt(matrixB[j]) Integer.parseInt Integer matrixB[j] matrixB j for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long 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++) {
				long 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++) {
				long 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++) {
				long 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 {
				long 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 + " ");
			} {
				long 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 + " ");
			} long 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 System.out System System.out 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[] strAry = br.readLine().split(" ");
		int n = Integer.parseInt(strAry[0]);
		int m = Integer.parseInt(strAry[1]);
		int l = Integer.parseInt(strAry[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for (int i = 0; i < n; i++) {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long 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[] strAry = br.readLine().split(" ");
		int n = Integer.parseInt(strAry[0]);
		int m = Integer.parseInt(strAry[1]);
		int l = Integer.parseInt(strAry[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for (int i = 0; i < n; i++) {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long 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.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strAry = br.readLine().split(" ");
		int n = Integer.parseInt(strAry[0]);
		int m = Integer.parseInt(strAry[1]);
		int l = Integer.parseInt(strAry[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for (int i = 0; i < n; i++) {
			String[] matrixA = br.readLine().split(" ");
			for (int j = 0; j < m; j++) {
				a[i][j] = Integer.parseInt(matrixA[j]);
			}
		}
		for (int i = 0; i < m; i++) {
			String[] matrixB = br.readLine().split(" ");
			for (int j = 0; j < l; j++) {
				b[i][j] = Integer.parseInt(matrixB[j]);
			}
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < l; j++) {
				long 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();
		}
	}
}