import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		
		int []a = new int [100*n+m];
		for(int b=0;b<n;b++){
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		}
		
		int []b = new int[100*m+l];
		for(int c=0;c<m;c++){
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		}
		
		long x;
		for(int s=0;s<n;s++){
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		}

	}

} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		
		int []a = new int [100*n+m];
		for(int b=0;b<n;b++){
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		}
		
		int []b = new int[100*m+l];
		for(int c=0;c<m;c++){
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		}
		
		long x;
		for(int s=0;s<n;s++){
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		}

	}

} Main public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		
		int []a = new int [100*n+m];
		for(int b=0;b<n;b++){
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		}
		
		int []b = new int[100*m+l];
		for(int c=0;c<m;c++){
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		}
		
		long x;
		for(int s=0;s<n;s++){
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		}

	} main {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		
		int []a = new int [100*n+m];
		for(int b=0;b<n;b++){
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		}
		
		int []b = new int[100*m+l];
		for(int c=0;c<m;c++){
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		}
		
		long x;
		for(int s=0;s<n;s++){
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		}

	} 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 int []a = new int [100*n+m]; a new int [100*n+m] 100*n+m 100*n 100 n m for(int b=0;b<n;b++){
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		} int b=0; int b=0; b 0 b<n b n b++ b++ b {
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		} {
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		} for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			} int c=0; int c=0; c 0 c<m c m c++ c++ c {
				a[100*b+c] = sc.nextInt();
			} {
				a[100*b+c] = sc.nextInt();
			} a[100*b+c] = sc.nextInt() a[100*b+c] a 100*b+c 100*b 100 b c sc.nextInt() sc.nextInt sc int []b = new int[100*m+l]; b new int[100*m+l] 100*m+l 100*m 100 m l for(int c=0;c<m;c++){
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		} int c=0; int c=0; c 0 c<m c m c++ c++ c {
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		} {
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		} for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt(); int d=0; int d=0; d 0 d<l d l d++ d++ d b[100*c+d] = sc.nextInt(); b[100*c+d] = sc.nextInt() b[100*c+d] b 100*c+d 100*c 100 c d sc.nextInt() sc.nextInt sc long x; x for(int s=0;s<n;s++){
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		} int s=0; int s=0; s 0 s<n s n s++ s++ s {
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		} {
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		} for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			} int t=0; int t=0; t 0 t<l t l t++ t++ t {
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			} {
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			} x=0 x 0 for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				} int u=0; int u=0; u 0 u<m u m u++ u++ u {
					x=x+a[100*s+u]*b[100*u+t];
				} {
					x=x+a[100*s+u]*b[100*u+t];
				} x=x+a[100*s+u]*b[100*u+t] x x+a[100*s+u]*b[100*u+t] x a[100*s+u]*b[100*u+t] a[100*s+u] a 100*s+u 100*s 100 s u b[100*u+t] b 100*u+t 100*u 100 u t if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				} t!=l-1 t l-1 l 1 {
					System.out.print(x+" ");
				} System.out.print(x+" ") System.out.print System.out System System.out x+" " x " " {
					System.out.println(x);
				} System.out.println(x) System.out.println System.out System System.out x String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		
		int []a = new int [100*n+m];
		for(int b=0;b<n;b++){
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		}
		
		int []b = new int[100*m+l];
		for(int c=0;c<m;c++){
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		}
		
		long x;
		for(int s=0;s<n;s++){
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		}

	}

} public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		
		int []a = new int [100*n+m];
		for(int b=0;b<n;b++){
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		}
		
		int []b = new int[100*m+l];
		for(int c=0;c<m;c++){
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		}
		
		long x;
		for(int s=0;s<n;s++){
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		}

	}

} Main
import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int l = sc.nextInt();
		
		int []a = new int [100*n+m];
		for(int b=0;b<n;b++){
			for(int c=0;c<m;c++){
				a[100*b+c] = sc.nextInt();
			}
		}
		
		int []b = new int[100*m+l];
		for(int c=0;c<m;c++){
			for(int d=0;d<l;d++)
			b[100*c+d] = sc.nextInt();
		}
		
		long x;
		for(int s=0;s<n;s++){
			for(int t=0;t<l;t++){
				x=0;
				for(int u=0;u<m;u++){
					x=x+a[100*s+u]*b[100*u+t];
				}
				if(t!=l-1){
					System.out.print(x+" ");
				}else{
					System.out.println(x);
				}
			}
		}

	}

}