import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n, m, l;
		n = in.nextInt();
		m = in.nextInt();
		l = in.nextInt();
		long A[][] = new long[n][m];
		long B[][] = new long[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();
			}
		}

		long c[][] = new long[n][l];
		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++) {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n, m, l;
		n = in.nextInt();
		m = in.nextInt();
		l = in.nextInt();
		long A[][] = new long[n][m];
		long B[][] = new long[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();
			}
		}

		long c[][] = new long[n][l];
		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++) {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		}
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n, m, l;
		n = in.nextInt();
		m = in.nextInt();
		l = in.nextInt();
		long A[][] = new long[n][m];
		long B[][] = new long[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();
			}
		}

		long c[][] = new long[n][l];
		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++) {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		}
	} main {
		Scanner in = new Scanner(System.in);
		int n, m, l;
		n = in.nextInt();
		m = in.nextInt();
		l = in.nextInt();
		long A[][] = new long[n][m];
		long B[][] = new long[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();
			}
		}

		long c[][] = new long[n][l];
		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++) {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n n m m l; l n = in.nextInt() n in.nextInt() in.nextInt in m = in.nextInt() m in.nextInt() in.nextInt in l = in.nextInt() l in.nextInt() in.nextInt in long A[][] = new long[n][m]; A new long[n][m] n m long B[][] = new long[m][l]; B new long[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 long c[][] = new long[n][l]; c new long[n][l] n l 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++) {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		} {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		} String s = ""; s "" for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			} int j=0; int j=0; j 0 j<l j l j++ j++ j {
				s += c[i][j] + " ";
			} {
				s += c[i][j] + " ";
			} s += c[i][j] + " " s c[i][j] + " " c[i][j] c[i] c i j " " System.out.println(s.substring(0, s.length()-1)) System.out.println System.out System System.out s.substring(0, s.length()-1) s.substring s 0 s.length()-1 s.length() s.length s 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n, m, l;
		n = in.nextInt();
		m = in.nextInt();
		l = in.nextInt();
		long A[][] = new long[n][m];
		long B[][] = new long[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();
			}
		}

		long c[][] = new long[n][l];
		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++) {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n, m, l;
		n = in.nextInt();
		m = in.nextInt();
		l = in.nextInt();
		long A[][] = new long[n][m];
		long B[][] = new long[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();
			}
		}

		long c[][] = new long[n][l];
		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++) {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		}
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n, m, l;
		n = in.nextInt();
		m = in.nextInt();
		l = in.nextInt();
		long A[][] = new long[n][m];
		long B[][] = new long[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();
			}
		}

		long c[][] = new long[n][l];
		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++) {
			String s = "";
			for(int j=0;j<l;j++) {
				s += c[i][j] + " ";
			}
			System.out.println(s.substring(0, s.length()-1));
		}
	}
}