import java.util.Scanner;

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

class Main
{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		long[][] a = new long[100][100];
		long[][] b = new long[100][100];
		long[][] c = new long[100][100];
		
		int n = scan.nextInt();
		int m = scan.nextInt();
		int l = scan.nextInt();
		
		for(int i=0; i<n; i++){
		for(int j=0; j<l; j++){
			c[i][j] = 0;}}
		
		for(int i=0; i<n; i++){
		for(int k=0; k<m; k++){
			a[i][k] = scan.nextLong();}}
		
		for(int k=0; k<m; k++){
		for(int j=0; j<l; j++){
			b[k][j] = scan.nextLong();}}
			
		for(int i=0; i<n; i++){
		for(int j=0; j<l; j++){
		for(int k=0; k<m; k++){
			c[i][j] += a[i][k] * b[k][j];}}}
			
		for(int i=0; i<n; i++){
		for(int j=0; j<l; j++){
			System.out.print(c[i][j]);
			if(j!=l-1){
				System.out.print(" ");}}
			System.out.print("\n");}
	}
}
