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

public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] spl = line1.split(" ");
		int n = Integer.parseInt(spl[0]);
		int m = Integer.parseInt(spl[1]);
		int l = Integer.parseInt(spl[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		long[][] c = new long[n][l];
		for (int i = 0; i<n ; i++) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<m ; j++ ) {
				a[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<m ; i++ ) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<l ; j++ ) {
				b[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for (int j = 0; j<m ; j++ ) {
				for (int k = 0; k<l ;k++ ) {
					c[i][k] += (long) (a[i][j] * b[j][k]);
				}
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for ( int j = 0; j<(l-1) ; j++ ) {
				System.out.print(c[i][j]+" ");
			}
			System.out.println(c[i][l-1]);
		}
		
	}
} import java.io.*; io.* java import java.util.Arrays; Arrays java.util public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] spl = line1.split(" ");
		int n = Integer.parseInt(spl[0]);
		int m = Integer.parseInt(spl[1]);
		int l = Integer.parseInt(spl[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		long[][] c = new long[n][l];
		for (int i = 0; i<n ; i++) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<m ; j++ ) {
				a[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<m ; i++ ) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<l ; j++ ) {
				b[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for (int j = 0; j<m ; j++ ) {
				for (int k = 0; k<l ;k++ ) {
					c[i][k] += (long) (a[i][j] * b[j][k]);
				}
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for ( int j = 0; j<(l-1) ; j++ ) {
				System.out.print(c[i][j]+" ");
			}
			System.out.println(c[i][l-1]);
		}
		
	}
} Main public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] spl = line1.split(" ");
		int n = Integer.parseInt(spl[0]);
		int m = Integer.parseInt(spl[1]);
		int l = Integer.parseInt(spl[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		long[][] c = new long[n][l];
		for (int i = 0; i<n ; i++) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<m ; j++ ) {
				a[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<m ; i++ ) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<l ; j++ ) {
				b[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for (int j = 0; j<m ; j++ ) {
				for (int k = 0; k<l ;k++ ) {
					c[i][k] += (long) (a[i][j] * b[j][k]);
				}
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for ( int j = 0; j<(l-1) ; j++ ) {
				System.out.print(c[i][j]+" ");
			}
			System.out.println(c[i][l-1]);
		}
		
	} main { 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] spl = line1.split(" ");
		int n = Integer.parseInt(spl[0]);
		int m = Integer.parseInt(spl[1]);
		int l = Integer.parseInt(spl[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		long[][] c = new long[n][l];
		for (int i = 0; i<n ; i++) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<m ; j++ ) {
				a[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<m ; i++ ) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<l ; j++ ) {
				b[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for (int j = 0; j<m ; j++ ) {
				for (int k = 0; k<l ;k++ ) {
					c[i][k] += (long) (a[i][j] * b[j][k]);
				}
			}
		}

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

		for (int i = 0; i<m ; i++ ) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<l ; j++ ) {
				b[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for (int j = 0; j<m ; j++ ) {
				for (int k = 0; k<l ;k++ ) {
					c[i][k] += (long) (a[i][j] * b[j][k]);
				}
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for ( int j = 0; j<(l-1) ; j++ ) {
				System.out.print(c[i][j]+" ");
			}
			System.out.println(c[i][l-1]);
		}
		
	}
} public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] spl = line1.split(" ");
		int n = Integer.parseInt(spl[0]);
		int m = Integer.parseInt(spl[1]);
		int l = Integer.parseInt(spl[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		long[][] c = new long[n][l];
		for (int i = 0; i<n ; i++) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<m ; j++ ) {
				a[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<m ; i++ ) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<l ; j++ ) {
				b[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for (int j = 0; j<m ; j++ ) {
				for (int k = 0; k<l ;k++ ) {
					c[i][k] += (long) (a[i][j] * b[j][k]);
				}
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for ( int j = 0; j<(l-1) ; j++ ) {
				System.out.print(c[i][j]+" ");
			}
			System.out.println(c[i][l-1]);
		}
		
	}
} Main
import java.io.*;
import java.util.Arrays;

public class Main{
	public static void main(String[] args) throws IOException{ 
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line1 = br.readLine();
		String[] spl = line1.split(" ");
		int n = Integer.parseInt(spl[0]);
		int m = Integer.parseInt(spl[1]);
		int l = Integer.parseInt(spl[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];
		long[][] c = new long[n][l];
		for (int i = 0; i<n ; i++) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<m ; j++ ) {
				a[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<m ; i++ ) {
			String line = br.readLine();
			String[] str = line.split(" ");
			for (int j = 0; j<l ; j++ ) {
				b[i][j] += Integer.parseInt(str[j]);
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for (int j = 0; j<m ; j++ ) {
				for (int k = 0; k<l ;k++ ) {
					c[i][k] += (long) (a[i][j] * b[j][k]);
				}
			}
		}

		for (int i = 0; i<n ; i++ ) {
			for ( int j = 0; j<(l-1) ; j++ ) {
				System.out.print(c[i][j]+" ");
			}
			System.out.println(c[i][l-1]);
		}
		
	}
}