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

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] inputList = br.readLine().split(" ");
			int n = Integer.parseInt(inputList[0]);
			int m = Integer.parseInt(inputList[1]);
			int l = Integer.parseInt(inputList[2]);
			int[][] a = new int[n][m];
			int[][] b = new int[m][l];
			BigInteger[][] c = new BigInteger[n][l];
			int i, j, k;
			for (i = 0; i < n; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			}
			for (i = 0; i < m; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			}

			for (i = 0; i < c.length; i++) {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			}

			String text = "";
			for (i = 0; i < n; i++) {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.math.BigInteger; BigInteger java.math class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] inputList = br.readLine().split(" ");
			int n = Integer.parseInt(inputList[0]);
			int m = Integer.parseInt(inputList[1]);
			int l = Integer.parseInt(inputList[2]);
			int[][] a = new int[n][m];
			int[][] b = new int[m][l];
			BigInteger[][] c = new BigInteger[n][l];
			int i, j, k;
			for (i = 0; i < n; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			}
			for (i = 0; i < m; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			}

			for (i = 0; i < c.length; i++) {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			}

			String text = "";
			for (i = 0; i < n; i++) {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] inputList = br.readLine().split(" ");
			int n = Integer.parseInt(inputList[0]);
			int m = Integer.parseInt(inputList[1]);
			int l = Integer.parseInt(inputList[2]);
			int[][] a = new int[n][m];
			int[][] b = new int[m][l];
			BigInteger[][] c = new BigInteger[n][l];
			int i, j, k;
			for (i = 0; i < n; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			}
			for (i = 0; i < m; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			}

			for (i = 0; i < c.length; i++) {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			}

			String text = "";
			for (i = 0; i < n; i++) {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] inputList = br.readLine().split(" ");
			int n = Integer.parseInt(inputList[0]);
			int m = Integer.parseInt(inputList[1]);
			int l = Integer.parseInt(inputList[2]);
			int[][] a = new int[n][m];
			int[][] b = new int[m][l];
			BigInteger[][] c = new BigInteger[n][l];
			int i, j, k;
			for (i = 0; i < n; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			}
			for (i = 0; i < m; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			}

			for (i = 0; i < c.length; i++) {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			}

			String text = "";
			for (i = 0; i < n; i++) {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) try {
			String[] inputList = br.readLine().split(" ");
			int n = Integer.parseInt(inputList[0]);
			int m = Integer.parseInt(inputList[1]);
			int l = Integer.parseInt(inputList[2]);
			int[][] a = new int[n][m];
			int[][] b = new int[m][l];
			BigInteger[][] c = new BigInteger[n][l];
			int i, j, k;
			for (i = 0; i < n; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			}
			for (i = 0; i < m; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			}

			for (i = 0; i < c.length; i++) {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			}

			String text = "";
			for (i = 0; i < n; i++) {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			String[] inputList = br.readLine().split(" ");
			int n = Integer.parseInt(inputList[0]);
			int m = Integer.parseInt(inputList[1]);
			int l = Integer.parseInt(inputList[2]);
			int[][] a = new int[n][m];
			int[][] b = new int[m][l];
			BigInteger[][] c = new BigInteger[n][l];
			int i, j, k;
			for (i = 0; i < n; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			}
			for (i = 0; i < m; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			}

			for (i = 0; i < c.length; i++) {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			}

			String text = "";
			for (i = 0; i < n; i++) {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			}
		} String[] inputList = br.readLine().split(" "); inputList br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(inputList[0]); n Integer.parseInt(inputList[0]) Integer.parseInt Integer inputList[0] inputList 0 int m = Integer.parseInt(inputList[1]); m Integer.parseInt(inputList[1]) Integer.parseInt Integer inputList[1] inputList 1 int l = Integer.parseInt(inputList[2]); l Integer.parseInt(inputList[2]) Integer.parseInt Integer inputList[2] inputList 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 BigInteger[][] c = new BigInteger[n][l]; c new BigInteger[n][l] n l int i i j j k; k for (i = 0; i < n; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			} i = 0; i = 0 i 0 i < n i n i++ i++ i {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			} {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			} inputList = br.readLine().split(" ") inputList br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				} j = 0; j = 0 j 0 j < m j m j++ j++ j {
					a[i][j] = Integer.parseInt(inputList[j]);
				} {
					a[i][j] = Integer.parseInt(inputList[j]);
				} a[i][j] = Integer.parseInt(inputList[j]) a[i][j] a[i] a i j Integer.parseInt(inputList[j]) Integer.parseInt Integer inputList[j] inputList j for (i = 0; i < m; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			} i = 0; i = 0 i 0 i < m i m i++ i++ i {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			} {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			} inputList = br.readLine().split(" ") inputList br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				} j = 0; j = 0 j 0 j < l j l j++ j++ j {
					b[i][j] = Integer.parseInt(inputList[j]);
				} {
					b[i][j] = Integer.parseInt(inputList[j]);
				} b[i][j] = Integer.parseInt(inputList[j]) b[i][j] b[i] b i j Integer.parseInt(inputList[j]) Integer.parseInt Integer inputList[j] inputList j for (i = 0; i < c.length; i++) {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			} i = 0; i = 0 i 0 i < c.length i c.length c c.length i++ i++ i {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			} {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			} for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				} j = 0; j = 0 j 0 j < c[i].length j c[i].length c[i] c i c[i].length j++ j++ j {
					c[i][j] = BigInteger.ZERO;
				} {
					c[i][j] = BigInteger.ZERO;
				} c[i][j] = BigInteger.ZERO c[i][j] c[i] c i j BigInteger.ZERO BigInteger BigInteger.ZERO String text = ""; text "" for (i = 0; i < n; i++) {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			} i = 0; i = 0 i 0 i < n i n i++ i++ i {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			} {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			} for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				} j = 0; j = 0 j 0 j < m j m j++ j++ j {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				} {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				} for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					} k = 0; k = 0 k 0 k < l k l k++ k++ k {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					} {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					} c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k]))) c[i][k] c[i] c i k c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k]))) c[i][k].add c[i][k] c[i] c i k BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])) BigInteger.valueOf(a[i][j]).multiply BigInteger.valueOf(a[i][j]) BigInteger.valueOf BigInteger a[i][j] a[i] a i j BigInteger.valueOf(b[j][k]) BigInteger.valueOf BigInteger b[j][k] b[j] b j k text = "" text "" for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				} k = 0; k = 0 k 0 k < l k l k++ k++ k {
					text = text + c[i][k] + " ";
				} {
					text = text + c[i][k] + " ";
				} text = text + c[i][k] + " " text text + c[i][k] + " " text + c[i][k] + " " text c[i][k] c[i] c i k " " System.out.println(text.substring(0, text.length() - 1)) System.out.println System.out System System.out text.substring(0, text.length() - 1) text.substring text 0 text.length() - 1 text.length() text.length text 1 String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String[] inputList = br.readLine().split(" ");
			int n = Integer.parseInt(inputList[0]);
			int m = Integer.parseInt(inputList[1]);
			int l = Integer.parseInt(inputList[2]);
			int[][] a = new int[n][m];
			int[][] b = new int[m][l];
			BigInteger[][] c = new BigInteger[n][l];
			int i, j, k;
			for (i = 0; i < n; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < m; j++) {
					a[i][j] = Integer.parseInt(inputList[j]);
				}
			}
			for (i = 0; i < m; i++) {
				inputList = br.readLine().split(" ");
				for (j = 0; j < l; j++) {
					b[i][j] = Integer.parseInt(inputList[j]);
				}
			}

			for (i = 0; i < c.length; i++) {
				for (j = 0; j < c[i].length; j++) {
					c[i][j] = BigInteger.ZERO;
				}
			}

			String text = "";
			for (i = 0; i < n; i++) {
				for (j = 0; j < m; j++) {
					for (k = 0; k < l; k++) {
						c[i][k] = c[i][k].add(BigInteger.valueOf(a[i][j]).multiply(BigInteger.valueOf(b[j][k])));
					}
				}

				text = "";
				for (k = 0; k < l; k++) {
					text = text + c[i][k] + " ";
				}
				System.out.println(text.substring(0, text.length() - 1));
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}