import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int m=stdIn.nextInt();
		int l=stdIn.nextInt();
		int a[][]=new int[n][m];
		int b[][]=new int[m][l];
		int i,j,k;
		for(i=0;i<n;i++)
			for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt();
		for(i=0;i<m;i++)
			for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt();
		for(i=0;i<n;i++){
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		}
		
	}
} import java.util.*; util.* java import java.io.*; io.* java import java.lang.*; lang.* java import java.math.*; math.* java public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int m=stdIn.nextInt();
		int l=stdIn.nextInt();
		int a[][]=new int[n][m];
		int b[][]=new int[m][l];
		int i,j,k;
		for(i=0;i<n;i++)
			for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt();
		for(i=0;i<m;i++)
			for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt();
		for(i=0;i<n;i++){
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		}
		
	}
} Main public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int m=stdIn.nextInt();
		int l=stdIn.nextInt();
		int a[][]=new int[n][m];
		int b[][]=new int[m][l];
		int i,j,k;
		for(i=0;i<n;i++)
			for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt();
		for(i=0;i<m;i++)
			for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt();
		for(i=0;i<n;i++){
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		}
		
	} main {
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int m=stdIn.nextInt();
		int l=stdIn.nextInt();
		int a[][]=new int[n][m];
		int b[][]=new int[m][l];
		int i,j,k;
		for(i=0;i<n;i++)
			for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt();
		for(i=0;i<m;i++)
			for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt();
		for(i=0;i<n;i++){
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		}
		
	} Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n=stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int m=stdIn.nextInt(); m stdIn.nextInt() stdIn.nextInt stdIn int l=stdIn.nextInt(); l stdIn.nextInt() stdIn.nextInt stdIn int a[][]=new int[n][m]; a new int[n][m] n m int b[][]=new int[m][l]; b new int[m][l] m l int i i j j k; k for(i=0;i<n;i++)
			for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt(); i=0; i=0 i 0 i<n i n i++ i++ i for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt(); for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt(); j=0; j=0 j 0 j<m j m j++ j++ j a[i][j]=stdIn.nextInt(); a[i][j]=stdIn.nextInt() a[i][j] a[i] a i j stdIn.nextInt() stdIn.nextInt stdIn for(i=0;i<m;i++)
			for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt(); i=0; i=0 i 0 i<m i m i++ i++ i for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt(); for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt(); j=0; j=0 j 0 j<l j l j++ j++ j b[i][j]=stdIn.nextInt(); b[i][j]=stdIn.nextInt() b[i][j] b[i] b i j stdIn.nextInt() stdIn.nextInt stdIn for(i=0;i<n;i++){
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		} i=0; i=0 i 0 i<n i n i++ i++ i {
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		} {
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		} for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			} j=0; j=0 j 0 j<l j l j++ j++ j {
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			} {
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			} long c=0; c 0 if(j>0)
					System.out.print(" "); j>0 j 0 System.out.print(" ") System.out.print System.out System System.out " " for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j]; k=0; k=0 k 0 k<m k m k++ k++ k c+=a[i][k]*b[k][j]; c+=a[i][k]*b[k][j] c 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(c) System.out.print System.out System System.out c System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int m=stdIn.nextInt();
		int l=stdIn.nextInt();
		int a[][]=new int[n][m];
		int b[][]=new int[m][l];
		int i,j,k;
		for(i=0;i<n;i++)
			for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt();
		for(i=0;i<m;i++)
			for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt();
		for(i=0;i<n;i++){
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		}
		
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int m=stdIn.nextInt();
		int l=stdIn.nextInt();
		int a[][]=new int[n][m];
		int b[][]=new int[m][l];
		int i,j,k;
		for(i=0;i<n;i++)
			for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt();
		for(i=0;i<m;i++)
			for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt();
		for(i=0;i<n;i++){
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		}
		
	}
} Main
import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class Main{
	public static void main(String[] args) throws IOException{
		Scanner stdIn=new Scanner(System.in);
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=stdIn.nextInt();
		int m=stdIn.nextInt();
		int l=stdIn.nextInt();
		int a[][]=new int[n][m];
		int b[][]=new int[m][l];
		int i,j,k;
		for(i=0;i<n;i++)
			for(j=0;j<m;j++)
				a[i][j]=stdIn.nextInt();
		for(i=0;i<m;i++)
			for(j=0;j<l;j++)
				b[i][j]=stdIn.nextInt();
		for(i=0;i<n;i++){
			for(j=0;j<l;j++){
				long c=0;
				if(j>0)
					System.out.print(" ");
				for(k=0;k<m;k++)
					c+=a[i][k]*b[k][j];
				System.out.print(c);
			}
			System.out.println("");
		}
		
	}
}