import java.io.IOException;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws IOException{

		Scanner sc = new Scanner(System.in);

		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();

		int[][] a = new int[x][y];
		int[][] b = new int[y][z];

		for(int i=0;i<x;i++) {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		}

		for(int i=0;i<y;i++) {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		}

		long tmp = 0;

		for(int i=0;i<x;i++) {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		}

		sc.close();
	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException{

		Scanner sc = new Scanner(System.in);

		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();

		int[][] a = new int[x][y];
		int[][] b = new int[y][z];

		for(int i=0;i<x;i++) {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		}

		for(int i=0;i<y;i++) {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		}

		long tmp = 0;

		for(int i=0;i<x;i++) {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		}

		sc.close();
	}
} Main public static void main(String[] args) throws IOException{

		Scanner sc = new Scanner(System.in);

		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();

		int[][] a = new int[x][y];
		int[][] b = new int[y][z];

		for(int i=0;i<x;i++) {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		}

		for(int i=0;i<y;i++) {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		}

		long tmp = 0;

		for(int i=0;i<x;i++) {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		}

		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);

		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();

		int[][] a = new int[x][y];
		int[][] b = new int[y][z];

		for(int i=0;i<x;i++) {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		}

		for(int i=0;i<y;i++) {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		}

		long tmp = 0;

		for(int i=0;i<x;i++) {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		}

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int z = sc.nextInt(); z sc.nextInt() sc.nextInt sc int[][] a = new int[x][y]; a new int[x][y] x y int[][] b = new int[y][z]; b new int[y][z] y z for(int i=0;i<x;i++) {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		} int i=0; int i=0; i 0 i<x i x i++ i++ i {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		} {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		} for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			} int j=0; int j=0; j 0 j<y j y j++ j++ j {
				a[i][j] = sc.nextInt();
			} {
				a[i][j] = sc.nextInt();
			} a[i][j] = sc.nextInt() a[i][j] a[i] a i j sc.nextInt() sc.nextInt sc for(int i=0;i<y;i++) {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		} int i=0; int i=0; i 0 i<y i y i++ i++ i {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		} {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		} for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			} int j=0; int j=0; j 0 j<z j z j++ j++ j {
				b[i][j] = sc.nextInt();
			} {
				b[i][j] = sc.nextInt();
			} b[i][j] = sc.nextInt() b[i][j] b[i] b i j sc.nextInt() sc.nextInt sc long tmp = 0; tmp 0 for(int i=0;i<x;i++) {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		} int i=0; int i=0; i 0 i<x i x i++ i++ i {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		} {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		} for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			} int j=0; int j=0; j 0 j<z j z j++ j++ j {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			} {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			} for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				} int k=0; int k=0; k 0 k<y k y k++ k++ k {
					tmp += a[i][k] * b[k][j];
				} {
					tmp += a[i][k] * b[k][j];
				} tmp += a[i][k] * b[k][j] tmp a[i][k] * b[k][j] a[i][k] a[i] a i k b[k][j] b[k] b k j System.out.print(tmp) System.out.print System.out System System.out tmp if(j!=z-1) {
					System.out.print(" ");
				} j!=z-1 j z-1 z 1 {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " tmp = 0 tmp 0 System.out.println() System.out.println System.out System System.out sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) throws IOException{

		Scanner sc = new Scanner(System.in);

		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();

		int[][] a = new int[x][y];
		int[][] b = new int[y][z];

		for(int i=0;i<x;i++) {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		}

		for(int i=0;i<y;i++) {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		}

		long tmp = 0;

		for(int i=0;i<x;i++) {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		}

		sc.close();
	}
} public class Main {
	public static void main(String[] args) throws IOException{

		Scanner sc = new Scanner(System.in);

		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();

		int[][] a = new int[x][y];
		int[][] b = new int[y][z];

		for(int i=0;i<x;i++) {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		}

		for(int i=0;i<y;i++) {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		}

		long tmp = 0;

		for(int i=0;i<x;i++) {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		}

		sc.close();
	}
} Main
import java.io.IOException;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws IOException{

		Scanner sc = new Scanner(System.in);

		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();

		int[][] a = new int[x][y];
		int[][] b = new int[y][z];

		for(int i=0;i<x;i++) {
			for(int j=0;j<y;j++) {
				a[i][j] = sc.nextInt();
			}
		}

		for(int i=0;i<y;i++) {
			for(int j=0;j<z;j++) {
				b[i][j] = sc.nextInt();
			}
		}

		long tmp = 0;

		for(int i=0;i<x;i++) {
			for(int j=0;j<z;j++) {
				for(int k=0;k<y;k++) {
					tmp += a[i][k] * b[k][j];
				}
				System.out.print(tmp);
				if(j!=z-1) {
					System.out.print(" ");
				}
				tmp = 0;
			}
			System.out.println();
		}

		sc.close();
	}
}
