import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int n,m,l;
		long cal;
		int i,j,k;
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		m=scan.nextInt();
		l=scan.nextInt();
		long[][] yousoA =new long[n][m];
		long[][] yousoB =new long[m][l];
		long[][] yousoC =new long[n][l];
		for(i=0;i<n;i++)
		{
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		}
		for(i=0;i<m;i++)
		{
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		}
		for(i=0;i<n;i++)
		{
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		}
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int n,m,l;
		long cal;
		int i,j,k;
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		m=scan.nextInt();
		l=scan.nextInt();
		long[][] yousoA =new long[n][m];
		long[][] yousoB =new long[m][l];
		long[][] yousoC =new long[n][l];
		for(i=0;i<n;i++)
		{
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		}
		for(i=0;i<m;i++)
		{
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		}
		for(i=0;i<n;i++)
		{
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		}
		
	}
} Main public static void main(String[] args) {
		int n,m,l;
		long cal;
		int i,j,k;
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		m=scan.nextInt();
		l=scan.nextInt();
		long[][] yousoA =new long[n][m];
		long[][] yousoB =new long[m][l];
		long[][] yousoC =new long[n][l];
		for(i=0;i<n;i++)
		{
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		}
		for(i=0;i<m;i++)
		{
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		}
		for(i=0;i<n;i++)
		{
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		}
		
	} main {
		int n,m,l;
		long cal;
		int i,j,k;
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		m=scan.nextInt();
		l=scan.nextInt();
		long[][] yousoA =new long[n][m];
		long[][] yousoB =new long[m][l];
		long[][] yousoC =new long[n][l];
		for(i=0;i<n;i++)
		{
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		}
		for(i=0;i<m;i++)
		{
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		}
		for(i=0;i<n;i++)
		{
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		}
		
	} int n n m m l; l long cal; cal int i i j j k; k Scanner scan = new Scanner(System.in); scan new Scanner(System.in) n=scan.nextInt() n scan.nextInt() scan.nextInt scan m=scan.nextInt() m scan.nextInt() scan.nextInt scan l=scan.nextInt() l scan.nextInt() scan.nextInt scan long[][] yousoA =new long[n][m]; yousoA new long[n][m] n m long[][] yousoB =new long[m][l]; yousoB new long[m][l] m l long[][] yousoC =new long[n][l]; yousoC new long[n][l] n l for(i=0;i<n;i++)
		{
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		} i=0; i=0 i 0 i<n i n i++ i++ i {
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		} {
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		} for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			} j=0; j=0 j 0 j<m j m j++ j++ j {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			} {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			} cal=scan.nextInt() cal scan.nextInt() scan.nextInt scan yousoA[i][j]=cal yousoA[i][j] yousoA[i] yousoA i j cal for(i=0;i<m;i++)
		{
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		} i=0; i=0 i 0 i<m i m i++ i++ i {
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		} {
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		} for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				} j=0; j=0 j 0 j<l j l j++ j++ j {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				} {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				} cal=scan.nextInt() cal scan.nextInt() scan.nextInt scan yousoB[i][j]=cal yousoB[i][j] yousoB[i] yousoB i j cal for(i=0;i<n;i++)
		{
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		} i=0; i=0 i 0 i<n i n i++ i++ i {
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		} {
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		} cal=0 cal 0 for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			} j=0; j=0 j 0 j<l j l j++ j++ j {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			} {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			} for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				} k=0; k=0 k 0 k<m k m k++ k++ k {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				} {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				} cal=cal+yousoA[i][k]*yousoB[k][j] cal cal+yousoA[i][k]*yousoB[k][j] cal yousoA[i][k]*yousoB[k][j] yousoA[i][k] yousoA[i] yousoA i k yousoB[k][j] yousoB[k] yousoB k j yousoC[i][j]=cal yousoC[i][j] yousoC[i] yousoC i j cal cal=0 cal 0 if(j==l-1)
					break; j==l-1 j l-1 l 1 break; System.out.print(yousoC[i][j]+" ") System.out.print System.out System System.out yousoC[i][j]+" " yousoC[i][j] yousoC[i] yousoC i j " " System.out.println(yousoC[i][j]) System.out.println System.out System System.out yousoC[i][j] yousoC[i] yousoC i j String[] args args public class Main {
	public static void main(String[] args) {
		int n,m,l;
		long cal;
		int i,j,k;
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		m=scan.nextInt();
		l=scan.nextInt();
		long[][] yousoA =new long[n][m];
		long[][] yousoB =new long[m][l];
		long[][] yousoC =new long[n][l];
		for(i=0;i<n;i++)
		{
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		}
		for(i=0;i<m;i++)
		{
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		}
		for(i=0;i<n;i++)
		{
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		}
		
	}
} public class Main {
	public static void main(String[] args) {
		int n,m,l;
		long cal;
		int i,j,k;
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		m=scan.nextInt();
		l=scan.nextInt();
		long[][] yousoA =new long[n][m];
		long[][] yousoB =new long[m][l];
		long[][] yousoC =new long[n][l];
		for(i=0;i<n;i++)
		{
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		}
		for(i=0;i<m;i++)
		{
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		}
		for(i=0;i<n;i++)
		{
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		}
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int n,m,l;
		long cal;
		int i,j,k;
		Scanner scan = new Scanner(System.in);
		n=scan.nextInt();
		m=scan.nextInt();
		l=scan.nextInt();
		long[][] yousoA =new long[n][m];
		long[][] yousoB =new long[m][l];
		long[][] yousoC =new long[n][l];
		for(i=0;i<n;i++)
		{
			for(j=0;j<m;j++) {
			cal=scan.nextInt();
			yousoA[i][j]=cal;
			}
		}
		for(i=0;i<m;i++)
		{
			for(j=0;j<l;j++) {
				cal=scan.nextInt();
				yousoB[i][j]=cal;
				}
		}
		for(i=0;i<n;i++)
		{
			cal=0;
			for(j=0;j<l;j++) {
				for(k=0;k<m;k++) {
				cal=cal+yousoA[i][k]*yousoB[k][j];
				}
				yousoC[i][j]=cal;
				cal=0;
				if(j==l-1)
					break;
				System.out.print(yousoC[i][j]+" ");
			}
			System.out.println(yousoC[i][j]);
			
		}
		
	}
}