import java.util.Scanner;
 
class Main{
    	public static void main(String[] args){
        	Scanner sc = new Scanner(System.in);
        	int x = sc.nextInt();
	        int y = sc.nextInt();
	        int z = sc.nextInt();
	        long[][] a = new long[x][y];
	        long[][] b = new long[y][z];
	        long[][] c = new long[x][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();
            		}
        	}
         
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		}
        	}
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		}
            		System.out.println();
        	}
    	}
} import java.util.Scanner; Scanner java.util class Main{
    	public static void main(String[] args){
        	Scanner sc = new Scanner(System.in);
        	int x = sc.nextInt();
	        int y = sc.nextInt();
	        int z = sc.nextInt();
	        long[][] a = new long[x][y];
	        long[][] b = new long[y][z];
	        long[][] c = new long[x][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();
            		}
        	}
         
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		}
        	}
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		}
            		System.out.println();
        	}
    	}
} Main public static void main(String[] args){
        	Scanner sc = new Scanner(System.in);
        	int x = sc.nextInt();
	        int y = sc.nextInt();
	        int z = sc.nextInt();
	        long[][] a = new long[x][y];
	        long[][] b = new long[y][z];
	        long[][] c = new long[x][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();
            		}
        	}
         
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		}
        	}
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		}
            		System.out.println();
        	}
    	} main {
        	Scanner sc = new Scanner(System.in);
        	int x = sc.nextInt();
	        int y = sc.nextInt();
	        int z = sc.nextInt();
	        long[][] a = new long[x][y];
	        long[][] b = new long[y][z];
	        long[][] c = new long[x][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();
            		}
        	}
         
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		}
        	}
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		}
            		System.out.println();
        	}
    	} 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 long[][] a = new long[x][y]; a new long[x][y] x y long[][] b = new long[y][z]; b new long[y][z] y z long[][] c = new long[x][z]; c new long[x][z] x 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 for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		}
        	} 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++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		}
        	} {
            		for(int j=0; j<z; j++){
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		}
        	} for(int j=0; j<z; j++){
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		} int j=0; int j=0; j 0 j<z j z j++ j++ j {
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		} {
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		} for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		} int k=0; int k=0; k 0 k<y k y 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<x; i++){
            		for(int j=0; j<z; j++){
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		}
            		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++){
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		}
            		System.out.println();
        	} {
            		for(int j=0; j<z; j++){
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		}
            		System.out.println();
        	} for(int j=0; j<z; j++){
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		} int j=0; int j=0; j 0 j<z j z j++ j++ j {
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		} {
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		} System.out.print(c[i][j]) System.out.print System.out System System.out c[i][j] c[i] c i j 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 " " System.out.println() System.out.println System.out System System.out String[] args args
import java.util.Scanner;
 
class Main{
    	public static void main(String[] args){
        	Scanner sc = new Scanner(System.in);
        	int x = sc.nextInt();
	        int y = sc.nextInt();
	        int z = sc.nextInt();
	        long[][] a = new long[x][y];
	        long[][] b = new long[y][z];
	        long[][] c = new long[x][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();
            		}
        	}
         
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		for(int k=0; k<y; k++){
                    			c[i][j] += a[i][k] * b[k][j];
                		}
            		}
        	}
        	for(int i=0; i<x; i++){
            		for(int j=0; j<z; j++){
                		System.out.print(c[i][j]);
                		if(j != z-1){
                    			System.out.print(" ");
                		}
            		}
            		System.out.println();
        	}
    	}
}