import java.util.Scanner;

public class Main {

	static void input(long[][] array,int y,int x,Scanner scan){
		for(int i=0;i<y;i++){
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		}
	}
	
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int m=scan.nextInt();
		int l=scan.nextInt();
		long[][] A=new long[n][m];
		long[][] B=new long[m][l];
		long sum;
		input(A,n,m,scan);
		input(B,m,l,scan);
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		}
		scan.close();
	}

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

	static void input(long[][] array,int y,int x,Scanner scan){
		for(int i=0;i<y;i++){
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		}
	}
	
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int m=scan.nextInt();
		int l=scan.nextInt();
		long[][] A=new long[n][m];
		long[][] B=new long[m][l];
		long sum;
		input(A,n,m,scan);
		input(B,m,l,scan);
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		}
		scan.close();
	}

} Main static void input(long[][] array,int y,int x,Scanner scan){
		for(int i=0;i<y;i++){
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		}
	} input {
		for(int i=0;i<y;i++){
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		}
	} for(int i=0;i<y;i++){
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		} int i=0; int i=0; i 0 i<y i y i++ i++ i {
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		} {
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		} for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			} int j=0; int j=0; j 0 j<x j x j++ j++ j {
				array[i][j]=scan.nextInt();
			} {
				array[i][j]=scan.nextInt();
			} array[i][j]=scan.nextInt() array[i][j] array[i] array i j scan.nextInt() scan.nextInt scan long[][] array array int y y int x x Scanner scan scan public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int m=scan.nextInt();
		int l=scan.nextInt();
		long[][] A=new long[n][m];
		long[][] B=new long[m][l];
		long sum;
		input(A,n,m,scan);
		input(B,m,l,scan);
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		}
		scan.close();
	} main {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int m=scan.nextInt();
		int l=scan.nextInt();
		long[][] A=new long[n][m];
		long[][] B=new long[m][l];
		long sum;
		input(A,n,m,scan);
		input(B,m,l,scan);
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		}
		scan.close();
	} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan int m=scan.nextInt(); m scan.nextInt() scan.nextInt scan int l=scan.nextInt(); l scan.nextInt() scan.nextInt scan 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 long sum; sum input(A,n,m,scan) input A n m scan input(B,m,l,scan) input B m l scan for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		} {
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		} for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			} int j=0; int j=0; j 0 j<l j l j++ j++ j {
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			} {
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			} sum=0 sum 0 for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				} int k=0; int k=0; k 0 k<m k m k++ k++ k {
					sum+=A[i][k]*B[k][j];
				} {
					sum+=A[i][k]*B[k][j];
				} sum+=A[i][k]*B[k][j] sum A[i][k]*B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				} j==0 j 0 {
					System.out.print(sum);
				} System.out.print(sum) System.out.print System.out System System.out sum {
					System.out.print(" "+sum);
				} System.out.print(" "+sum) System.out.print System.out System System.out " "+sum " " sum System.out.println() System.out.println System.out System System.out scan.close() scan.close scan String[] args args public class Main {

	static void input(long[][] array,int y,int x,Scanner scan){
		for(int i=0;i<y;i++){
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		}
	}
	
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int m=scan.nextInt();
		int l=scan.nextInt();
		long[][] A=new long[n][m];
		long[][] B=new long[m][l];
		long sum;
		input(A,n,m,scan);
		input(B,m,l,scan);
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		}
		scan.close();
	}

} public class Main {

	static void input(long[][] array,int y,int x,Scanner scan){
		for(int i=0;i<y;i++){
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		}
	}
	
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int m=scan.nextInt();
		int l=scan.nextInt();
		long[][] A=new long[n][m];
		long[][] B=new long[m][l];
		long sum;
		input(A,n,m,scan);
		input(B,m,l,scan);
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		}
		scan.close();
	}

} Main
import java.util.Scanner;

public class Main {

	static void input(long[][] array,int y,int x,Scanner scan){
		for(int i=0;i<y;i++){
			for(int j=0;j<x;j++){
				array[i][j]=scan.nextInt();
			}
		}
	}
	
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int n=scan.nextInt();
		int m=scan.nextInt();
		int l=scan.nextInt();
		long[][] A=new long[n][m];
		long[][] B=new long[m][l];
		long sum;
		input(A,n,m,scan);
		input(B,m,l,scan);
		for(int i=0;i<n;i++){
			for(int j=0;j<l;j++){
				
				sum=0;
				for(int k=0;k<m;k++){
					sum+=A[i][k]*B[k][j];
				}
				if(j==0){
					System.out.print(sum);
				}else{
					System.out.print(" "+sum);
				}
			}
			System.out.println();
		}
		scan.close();
	}

}