import java.util.*;

public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] queueA = new long[n][m];
		long[][] queueB = new long[m][l];
		long[][] ans = new long[n][l];

		for(int i = 0; i < queueA.length;i++){
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		}
		for(int i = 0; i < queueB.length;i++){
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		}
	}
}
 import java.util.*; util.* java public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] queueA = new long[n][m];
		long[][] queueB = new long[m][l];
		long[][] ans = new long[n][l];

		for(int i = 0; i < queueA.length;i++){
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		}
		for(int i = 0; i < queueB.length;i++){
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		}
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] queueA = new long[n][m];
		long[][] queueB = new long[m][l];
		long[][] ans = new long[n][l];

		for(int i = 0; i < queueA.length;i++){
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		}
		for(int i = 0; i < queueB.length;i++){
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] queueA = new long[n][m];
		long[][] queueB = new long[m][l];
		long[][] ans = new long[n][l];

		for(int i = 0; i < queueA.length;i++){
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		}
		for(int i = 0; i < queueB.length;i++){
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int l = sc.nextInt(); l sc.nextInt() sc.nextInt sc long[][] queueA = new long[n][m]; queueA new long[n][m] n m long[][] queueB = new long[m][l]; queueB new long[m][l] m l long[][] ans = new long[n][l]; ans new long[n][l] n l for(int i = 0; i < queueA.length;i++){
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		} int i = 0; int i = 0; i 0 i < queueA.length i queueA.length queueA queueA.length i++ i++ i {
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		} {
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		} for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			} int j = 0; int j = 0; j 0 j < queueA[i].length j queueA[i].length queueA[i] queueA i queueA[i].length j++ j++ j {
				queueA[i][j] = sc.nextLong();
			} {
				queueA[i][j] = sc.nextLong();
			} queueA[i][j] = sc.nextLong() queueA[i][j] queueA[i] queueA i j sc.nextLong() sc.nextLong sc for(int i = 0; i < queueB.length;i++){
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		} int i = 0; int i = 0; i 0 i < queueB.length i queueB.length queueB queueB.length i++ i++ i {
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		} {
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		} for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			} int j = 0; int j = 0; j 0 j < queueB[i].length j queueB[i].length queueB[i] queueB i queueB[i].length j++ j++ j {
				queueB[i][j] = sc.nextLong();
			} {
				queueB[i][j] = sc.nextLong();
			} queueB[i][j] = sc.nextLong() queueB[i][j] queueB[i] queueB i j sc.nextLong() sc.nextLong sc for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		} int i = 0; int i = 0; i 0 i < ans.length i ans.length ans ans.length i++ i++ i {
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		} {
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		} for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			} int j = 0; int j = 0; j 0 j < ans[i].length j ans[i].length ans[i] ans i ans[i].length j++ j++ j {
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			} {
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			} for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				} int k = 0; int k = 0; k 0 k < queueA[i].length k queueA[i].length queueA[i] queueA i queueA[i].length k++ k++ k {
					ans[i][j] += queueA[i][k]*queueB[k][j];
				} {
					ans[i][j] += queueA[i][k]*queueB[k][j];
				} ans[i][j] += queueA[i][k]*queueB[k][j] ans[i][j] ans[i] ans i j queueA[i][k]*queueB[k][j] queueA[i][k] queueA[i] queueA i k queueB[k][j] queueB[k] queueB k j for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		} int i = 0; int i = 0; i 0 i < ans.length i ans.length ans ans.length i++ i++ i {
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		} {
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		} for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			} int j = 0; int j = 0; j 0 j < ans[i].length j ans[i].length ans[i] ans i ans[i].length j++ j++ j {
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			} {
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			} if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				} j == ans[0].length - 1 j ans[0].length - 1 ans[0].length ans[0] ans 0 ans[0].length 1 {
					System.out.println(ans[i][j]);
				} System.out.println(ans[i][j]) System.out.println System.out System System.out ans[i][j] ans[i] ans i j {
					System.out.print(ans[i][j] + " ");
				} System.out.print(ans[i][j] + " ") System.out.print System.out System System.out ans[i][j] + " " ans[i][j] ans[i] ans i j " " String args[] args public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] queueA = new long[n][m];
		long[][] queueB = new long[m][l];
		long[][] ans = new long[n][l];

		for(int i = 0; i < queueA.length;i++){
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		}
		for(int i = 0; i < queueB.length;i++){
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		}
	}
} public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] queueA = new long[n][m];
		long[][] queueB = new long[m][l];
		long[][] ans = new long[n][l];

		for(int i = 0; i < queueA.length;i++){
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		}
		for(int i = 0; i < queueB.length;i++){
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		}
	}
} Main
import java.util.*;

public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();

		long[][] queueA = new long[n][m];
		long[][] queueB = new long[m][l];
		long[][] ans = new long[n][l];

		for(int i = 0; i < queueA.length;i++){
			for(int j = 0; j < queueA[i].length; j++){
				queueA[i][j] = sc.nextLong();
			}
		}
		for(int i = 0; i < queueB.length;i++){
			for(int j = 0; j < queueB[i].length; j++){
				queueB[i][j] = sc.nextLong();
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				for(int k = 0; k < queueA[i].length; k++){
					ans[i][j] += queueA[i][k]*queueB[k][j];
				}
			}
		}

		for(int i = 0; i < ans.length; i++){
			for(int j = 0; j < ans[i].length; j++){
				if(j == ans[0].length - 1){
					System.out.println(ans[i][j]);
				}else{
					System.out.print(ans[i][j] + " ");
				}
			}
		}
	}
}

