import java.util.*;
import java.io.*;

class Main {
	static PrintStream out = System.out;
	static Scanner in = new Scanner(System.in);

	public static void main(String[] args) {
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for(int i = 0; i < n; i++){
			for(int j = 0; j < m; j++){
				a[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < m; i++){
			for(int j = 0; j < l; j++){
				b[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < n; i++){
			String ret = "";
			for(int j = 0; j < l; j++){
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			}
			out.println(ret.trim());
		}
	}
} import java.util.*; util.* java import java.io.*; io.* java class Main {
	static PrintStream out = System.out;
	static Scanner in = new Scanner(System.in);

	public static void main(String[] args) {
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for(int i = 0; i < n; i++){
			for(int j = 0; j < m; j++){
				a[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < m; i++){
			for(int j = 0; j < l; j++){
				b[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < n; i++){
			String ret = "";
			for(int j = 0; j < l; j++){
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			}
			out.println(ret.trim());
		}
	}
} Main static PrintStream out = System.out; out System.out System System.out static Scanner in = new Scanner(System.in); in new Scanner(System.in) public static void main(String[] args) {
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for(int i = 0; i < n; i++){
			for(int j = 0; j < m; j++){
				a[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < m; i++){
			for(int j = 0; j < l; j++){
				b[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < n; i++){
			String ret = "";
			for(int j = 0; j < l; j++){
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			}
			out.println(ret.trim());
		}
	} main {
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for(int i = 0; i < n; i++){
			for(int j = 0; j < m; j++){
				a[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < m; i++){
			for(int j = 0; j < l; j++){
				b[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < n; i++){
			String ret = "";
			for(int j = 0; j < l; j++){
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			}
			out.println(ret.trim());
		}
	} int n = in.nextInt(); n in.nextInt() in.nextInt in int m = in.nextInt(); m in.nextInt() in.nextInt in int l = in.nextInt(); l in.nextInt() in.nextInt in 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++){
			for(int j = 0; j < m; j++){
				a[i][j] = in.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < m; j++){
				a[i][j] = in.nextInt();
			}
		} {
			for(int j = 0; j < m; j++){
				a[i][j] = in.nextInt();
			}
		} for(int j = 0; j < m; j++){
				a[i][j] = in.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				a[i][j] = in.nextInt();
			} {
				a[i][j] = in.nextInt();
			} a[i][j] = in.nextInt() a[i][j] a[i] a i j in.nextInt() in.nextInt in for(int i = 0; i < m; i++){
			for(int j = 0; j < l; j++){
				b[i][j] = in.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			for(int j = 0; j < l; j++){
				b[i][j] = in.nextInt();
			}
		} {
			for(int j = 0; j < l; j++){
				b[i][j] = in.nextInt();
			}
		} for(int j = 0; j < l; j++){
				b[i][j] = in.nextInt();
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				b[i][j] = in.nextInt();
			} {
				b[i][j] = in.nextInt();
			} b[i][j] = in.nextInt() b[i][j] b[i] b i j in.nextInt() in.nextInt in for(int i = 0; i < n; i++){
			String ret = "";
			for(int j = 0; j < l; j++){
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			}
			out.println(ret.trim());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String ret = "";
			for(int j = 0; j < l; j++){
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			}
			out.println(ret.trim());
		} {
			String ret = "";
			for(int j = 0; j < l; j++){
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			}
			out.println(ret.trim());
		} String ret = ""; ret "" for(int j = 0; j < l; j++){
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			} {
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			} long sum = 0; sum 0 for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					sum += a[i][k] * b[k][j];
				} {
					sum += a[i][k] * b[k][j];
				} sum += a[i][k] * b[k][j] sum a[i][k] * b[k][j] a[i][k] a[i] a i k b[k][j] b[k] b k j ret += " " + sum ret " " + sum " " sum out.println(ret.trim()) out.println out ret.trim() ret.trim ret String[] args args
import java.util.*;
import java.io.*;

class Main {
	static PrintStream out = System.out;
	static Scanner in = new Scanner(System.in);

	public static void main(String[] args) {
		int n = in.nextInt();
		int m = in.nextInt();
		int l = in.nextInt();
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		for(int i = 0; i < n; i++){
			for(int j = 0; j < m; j++){
				a[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < m; i++){
			for(int j = 0; j < l; j++){
				b[i][j] = in.nextInt();
			}
		}
		for(int i = 0; i < n; i++){
			String ret = "";
			for(int j = 0; j < l; j++){
				long sum = 0;
				for(int k = 0; k < m; k++){
					sum += a[i][k] * b[k][j];
				}
				ret += " " + sum;
			}
			out.println(ret.trim());
		}
	}
}