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

public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		int[][] ma;
		int[][] mb;
		
		String x = "";
		try {
			x = in.readLine();
			String[] data = x.split(" ");
			int n = Integer.parseInt(data[0]);
			int m = Integer.parseInt(data[1]);
			int l = Integer.parseInt(data[2]);
			
			ma = new int[n][m];
			mb = new int[m][l];

			for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			long[][] mc = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			}

			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} 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) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		int[][] ma;
		int[][] mb;
		
		String x = "";
		try {
			x = in.readLine();
			String[] data = x.split(" ");
			int n = Integer.parseInt(data[0]);
			int m = Integer.parseInt(data[1]);
			int l = Integer.parseInt(data[2]);
			
			ma = new int[n][m];
			mb = new int[m][l];

			for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			long[][] mc = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			}

			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		int[][] ma;
		int[][] mb;
		
		String x = "";
		try {
			x = in.readLine();
			String[] data = x.split(" ");
			int n = Integer.parseInt(data[0]);
			int m = Integer.parseInt(data[1]);
			int l = Integer.parseInt(data[2]);
			
			ma = new int[n][m];
			mb = new int[m][l];

			for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			long[][] mc = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			}

			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		int[][] ma;
		int[][] mb;
		
		String x = "";
		try {
			x = in.readLine();
			String[] data = x.split(" ");
			int n = Integer.parseInt(data[0]);
			int m = Integer.parseInt(data[1]);
			int l = Integer.parseInt(data[2]);
			
			ma = new int[n][m];
			mb = new int[m][l];

			for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			long[][] mc = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			}

			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int[][] ma; ma int[][] mb; mb String x = ""; x "" try {
			x = in.readLine();
			String[] data = x.split(" ");
			int n = Integer.parseInt(data[0]);
			int m = Integer.parseInt(data[1]);
			int l = Integer.parseInt(data[2]);
			
			ma = new int[n][m];
			mb = new int[m][l];

			for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			long[][] mc = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			}

			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} NumberFormatException e {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} IOException e {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			x = in.readLine();
			String[] data = x.split(" ");
			int n = Integer.parseInt(data[0]);
			int m = Integer.parseInt(data[1]);
			int l = Integer.parseInt(data[2]);
			
			ma = new int[n][m];
			mb = new int[m][l];

			for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			long[][] mc = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			}

			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			}
		} x = in.readLine() x in.readLine() in.readLine in String[] data = x.split(" "); data x.split(" ") x.split x " " int n = Integer.parseInt(data[0]); n Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 int m = Integer.parseInt(data[1]); m Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 int l = Integer.parseInt(data[2]); l Integer.parseInt(data[2]) Integer.parseInt Integer data[2] data 2 ma = new int[n][m] ma new int[n][m] n m mb = new int[m][l] mb new int[m][l] m l for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			} {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			} x = in.readLine() x in.readLine() in.readLine in data = x.split(" ") data x.split(" ") x.split x " " for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
					ma[i][j] = Integer.parseInt(data[j]);
				} {
					ma[i][j] = Integer.parseInt(data[j]);
				} ma[i][j] = Integer.parseInt(data[j]) ma[i][j] ma[i] ma i j Integer.parseInt(data[j]) Integer.parseInt Integer data[j] data j for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			} {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			} x = in.readLine() x in.readLine() in.readLine in data = x.split(" ") data x.split(" ") x.split x " " for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
					mb[i][j] = Integer.parseInt(data[j]);
				} {
					mb[i][j] = Integer.parseInt(data[j]);
				} mb[i][j] = Integer.parseInt(data[j]) mb[i][j] mb[i] mb i j Integer.parseInt(data[j]) Integer.parseInt Integer data[j] data j long[][] mc = new long[n][l]; mc new long[n][l] n l for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			} {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			} for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				} {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				} mc[i][j] = 0 mc[i][j] mc[i] mc i j 0 for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					} {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					} mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j] mc[i][j] mc[i] mc i j mc[i][j] + ma[i][k] * mb[k][j] mc[i][j] mc[i] mc i j ma[i][k] * mb[k][j] ma[i][k] ma[i] ma i k mb[k][j] mb[k] mb k j for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[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(mc[i][j]);
				}
				System.out.println();
			} {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			} for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[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(mc[i][j]);
				} {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				} if (j != 0) System.out.print(" "); j != 0 j 0 System.out.print(" ") System.out.print System.out System System.out " " System.out.print(mc[i][j]) System.out.print System.out System System.out mc[i][j] mc[i] mc 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) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		int[][] ma;
		int[][] mb;
		
		String x = "";
		try {
			x = in.readLine();
			String[] data = x.split(" ");
			int n = Integer.parseInt(data[0]);
			int m = Integer.parseInt(data[1]);
			int l = Integer.parseInt(data[2]);
			
			ma = new int[n][m];
			mb = new int[m][l];

			for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			long[][] mc = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			}

			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		int[][] ma;
		int[][] mb;
		
		String x = "";
		try {
			x = in.readLine();
			String[] data = x.split(" ");
			int n = Integer.parseInt(data[0]);
			int m = Integer.parseInt(data[1]);
			int l = Integer.parseInt(data[2]);
			
			ma = new int[n][m];
			mb = new int[m][l];

			for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			long[][] mc = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			}

			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		int[][] ma;
		int[][] mb;
		
		String x = "";
		try {
			x = in.readLine();
			String[] data = x.split(" ");
			int n = Integer.parseInt(data[0]);
			int m = Integer.parseInt(data[1]);
			int l = Integer.parseInt(data[2]);
			
			ma = new int[n][m];
			mb = new int[m][l];

			for (int i = 0; i < n; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < m; j++) {
					ma[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			for (int i = 0; i < m; i++) {
				x = in.readLine();
				data = x.split(" ");
				
				for (int j = 0; j < l; j++) {
					mb[i][j] = Integer.parseInt(data[j]);
				}
			}
			
			long[][] mc = new long[n][l];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					mc[i][j] = 0;
					for (int k = 0; k < m; k++) {
						mc[i][j] = mc[i][j] + ma[i][k] * mb[k][j];
					}
				}
			}

			for (int i = 0; i < n; i++) {
				for (int j = 0; j < l; j++) {
					if (j != 0) System.out.print(" ");
					System.out.print(mc[i][j]);
				}
				System.out.println();
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}