import 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[] strargs = new String[3];
		long[][] A = null;
		long[][] B = null;
		long[][] C = null;
		
		strargs = br.readLine().split("\\s+");
		
		int n = Integer.parseInt(strargs[0]);
		int m = Integer.parseInt(strargs[1]);
		int l = Integer.parseInt(strargs[2]);
		
		if ((1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100)) {
			A = new long[n][m];
			B = new long[m][l];
			C = new long[n][l];
			
			for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			}
			
			System.out.println(sb);
		}
	}
} import java.io.*; io.* java public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] strargs = new String[3];
		long[][] A = null;
		long[][] B = null;
		long[][] C = null;
		
		strargs = br.readLine().split("\\s+");
		
		int n = Integer.parseInt(strargs[0]);
		int m = Integer.parseInt(strargs[1]);
		int l = Integer.parseInt(strargs[2]);
		
		if ((1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100)) {
			A = new long[n][m];
			B = new long[m][l];
			C = new long[n][l];
			
			for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			}
			
			System.out.println(sb);
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] strargs = new String[3];
		long[][] A = null;
		long[][] B = null;
		long[][] C = null;
		
		strargs = br.readLine().split("\\s+");
		
		int n = Integer.parseInt(strargs[0]);
		int m = Integer.parseInt(strargs[1]);
		int l = Integer.parseInt(strargs[2]);
		
		if ((1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100)) {
			A = new long[n][m];
			B = new long[m][l];
			C = new long[n][l];
			
			for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			}
			
			System.out.println(sb);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String[] strargs = new String[3];
		long[][] A = null;
		long[][] B = null;
		long[][] C = null;
		
		strargs = br.readLine().split("\\s+");
		
		int n = Integer.parseInt(strargs[0]);
		int m = Integer.parseInt(strargs[1]);
		int l = Integer.parseInt(strargs[2]);
		
		if ((1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100)) {
			A = new long[n][m];
			B = new long[m][l];
			C = new long[n][l];
			
			for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			}
			
			System.out.println(sb);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String[] strargs = new String[3]; strargs new String[3] 3 long[][] A = null; A null long[][] B = null; B null long[][] C = null; C null strargs = br.readLine().split("\\s+") strargs br.readLine().split("\\s+") br.readLine().split br.readLine() br.readLine br "\\s+" int n = Integer.parseInt(strargs[0]); n Integer.parseInt(strargs[0]) Integer.parseInt Integer strargs[0] strargs 0 int m = Integer.parseInt(strargs[1]); m Integer.parseInt(strargs[1]) Integer.parseInt Integer strargs[1] strargs 1 int l = Integer.parseInt(strargs[2]); l Integer.parseInt(strargs[2]) Integer.parseInt Integer strargs[2] strargs 2 if ((1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100)) {
			A = new long[n][m];
			B = new long[m][l];
			C = new long[n][l];
			
			for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			}
			
			System.out.println(sb);
		} (1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100) (1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100) (1 <= n && n <= 100) 1 <= n 1 n n <= 100 n 100 (1 <= m && m <= 100) 1 <= m 1 m m <= 100 m 100 (1 <= l && l <= 100) 1 <= l 1 l l <= 100 l 100 {
			A = new long[n][m];
			B = new long[m][l];
			C = new long[n][l];
			
			for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			}
			
			System.out.println(sb);
		} A = new long[n][m] A new long[n][m] n m B = new long[m][l] B new long[m][l] m l C = new long[n][l] C new long[n][l] n l for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			} {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			} strargs = br.readLine().split("\\s+") strargs br.readLine().split("\\s+") br.readLine().split br.readLine() br.readLine br "\\s+" for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]); int j = 0; int j = 0; j 0 j < m j m j++ j++ j A[i][j] = Long.parseLong(strargs[j]); A[i][j] = Long.parseLong(strargs[j]) A[i][j] A[i] A i j Long.parseLong(strargs[j]) Long.parseLong Long strargs[j] strargs j for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			} {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			} strargs = br.readLine().split("\\s+") strargs br.readLine().split("\\s+") br.readLine().split br.readLine() br.readLine br "\\s+" for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]); int j = 0; int j = 0; j 0 j < l j l j++ j++ j B[i][j] = Long.parseLong(strargs[j]); B[i][j] = Long.parseLong(strargs[j]) B[i][j] B[i] B i j Long.parseLong(strargs[j]) Long.parseLong Long strargs[j] strargs j for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			} {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			} for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				} {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				} for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
						C[i][j] += A[i][k] * B[k][j];
					} {
						C[i][j] += A[i][k] * B[k][j];
					} C[i][j] += A[i][k] * B[k][j] C[i][j] C[i] C i j A[i][k] * B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) 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++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			} {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			} for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				} {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				} sb.append(C[i][j]) sb.append sb C[i][j] C[i] C i j if (j != (l - 1)) sb.append(" "); j != (l - 1) j (l - 1) l 1 sb.append(" ") sb.append sb " " if(i != (n - 1)) sb.append("\n"); i != (n - 1) i (n - 1) n 1 sb.append("\n") sb.append sb "\n" System.out.println(sb) System.out.println 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[] strargs = new String[3];
		long[][] A = null;
		long[][] B = null;
		long[][] C = null;
		
		strargs = br.readLine().split("\\s+");
		
		int n = Integer.parseInt(strargs[0]);
		int m = Integer.parseInt(strargs[1]);
		int l = Integer.parseInt(strargs[2]);
		
		if ((1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100)) {
			A = new long[n][m];
			B = new long[m][l];
			C = new long[n][l];
			
			for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			}
			
			System.out.println(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[] strargs = new String[3];
		long[][] A = null;
		long[][] B = null;
		long[][] C = null;
		
		strargs = br.readLine().split("\\s+");
		
		int n = Integer.parseInt(strargs[0]);
		int m = Integer.parseInt(strargs[1]);
		int l = Integer.parseInt(strargs[2]);
		
		if ((1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100)) {
			A = new long[n][m];
			B = new long[m][l];
			C = new long[n][l];
			
			for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			}
			
			System.out.println(sb);
		}
	}
} Main
import 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[] strargs = new String[3];
		long[][] A = null;
		long[][] B = null;
		long[][] C = null;
		
		strargs = br.readLine().split("\\s+");
		
		int n = Integer.parseInt(strargs[0]);
		int m = Integer.parseInt(strargs[1]);
		int l = Integer.parseInt(strargs[2]);
		
		if ((1 <= n && n <= 100) && (1 <= m && m <= 100) && (1 <= l && l <= 100)) {
			A = new long[n][m];
			B = new long[m][l];
			C = new long[n][l];
			
			for (int i = 0; i < n; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < m; j++) A[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < m; i++) {
				strargs = br.readLine().split("\\s+");
				for (int j = 0; j < l; j++) B[i][j] = Long.parseLong(strargs[j]);
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					for (int k = 0; k < m; k++) {
						C[i][j] += A[i][k] * B[k][j];
					}
				}
			}
			
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					sb.append(C[i][j]);
					if (j != (l - 1)) sb.append(" ");
				}
				if(i != (n - 1)) sb.append("\n");
			}
			
			System.out.println(sb);
		}
	}
}