import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] tmpArray = br.readLine().split(" ");
		int n = Integer.parseInt(tmpArray[0]);
		int m = Integer.parseInt(tmpArray[1]);
		int l = Integer.parseInt(tmpArray[2]);

		long[][] a = new long[n][m];
		long[][] b = new long[m][l];
		long[][] c = new long[n][l];

		for(int i = 0; i < n; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		}

		for(int i = 0; i < m; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		}

		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];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			System.out.println();
		}


	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] tmpArray = br.readLine().split(" ");
		int n = Integer.parseInt(tmpArray[0]);
		int m = Integer.parseInt(tmpArray[1]);
		int l = Integer.parseInt(tmpArray[2]);

		long[][] a = new long[n][m];
		long[][] b = new long[m][l];
		long[][] c = new long[n][l];

		for(int i = 0; i < n; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		}

		for(int i = 0; i < m; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		}

		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];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			System.out.println();
		}


	}

} Main public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] tmpArray = br.readLine().split(" ");
		int n = Integer.parseInt(tmpArray[0]);
		int m = Integer.parseInt(tmpArray[1]);
		int l = Integer.parseInt(tmpArray[2]);

		long[][] a = new long[n][m];
		long[][] b = new long[m][l];
		long[][] c = new long[n][l];

		for(int i = 0; i < n; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		}

		for(int i = 0; i < m; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		}

		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];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			System.out.println();
		}


	} main {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] tmpArray = br.readLine().split(" ");
		int n = Integer.parseInt(tmpArray[0]);
		int m = Integer.parseInt(tmpArray[1]);
		int l = Integer.parseInt(tmpArray[2]);

		long[][] a = new long[n][m];
		long[][] b = new long[m][l];
		long[][] c = new long[n][l];

		for(int i = 0; i < n; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		}

		for(int i = 0; i < m; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		}

		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];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			System.out.println();
		}


	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] tmpArray = br.readLine().split(" "); tmpArray br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(tmpArray[0]); n Integer.parseInt(tmpArray[0]) Integer.parseInt Integer tmpArray[0] tmpArray 0 int m = Integer.parseInt(tmpArray[1]); m Integer.parseInt(tmpArray[1]) Integer.parseInt Integer tmpArray[1] tmpArray 1 int l = Integer.parseInt(tmpArray[2]); l Integer.parseInt(tmpArray[2]) Integer.parseInt Integer tmpArray[2] tmpArray 2 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[][] c = new long[n][l]; c new long[n][l] n l for(int i = 0; i < n; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i ++ i ++ i {
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		} {
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		} tmpArray = br.readLine().split(" ") tmpArray br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				a[i][j] = Long.parseLong(tmpArray[j]);
			} {
				a[i][j] = Long.parseLong(tmpArray[j]);
			} a[i][j] = Long.parseLong(tmpArray[j]) a[i][j] a[i] a i j Long.parseLong(tmpArray[j]) Long.parseLong Long tmpArray[j] tmpArray j for(int i = 0; i < m; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		} int i = 0; int i = 0; i 0 i < m i m i ++ i ++ i {
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		} {
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		} tmpArray = br.readLine().split(" ") tmpArray br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
				b[i][j] = Integer.parseInt(tmpArray[j]);
			} {
				b[i][j] = Integer.parseInt(tmpArray[j]);
			} b[i][j] = Integer.parseInt(tmpArray[j]) b[i][j] b[i] b i j Integer.parseInt(tmpArray[j]) Integer.parseInt Integer tmpArray[j] tmpArray j 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];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			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++){
				for(int k = 0; k < m; k++){
					c[i][j] += a[i][k]*b[k][j];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			System.out.println();
		} {
			for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					c[i][j] += a[i][k]*b[k][j];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			System.out.println();
		} for(int j = 0; j < l; j++){
				for(int k = 0; k < m; k++){
					c[i][j] += a[i][k]*b[k][j];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][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];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			} {
				for(int k = 0; k < m; k++){
					c[i][j] += a[i][k]*b[k][j];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][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 if(j != 0 ){
					System.out.print(" ");
				} j != 0 j 0 {
					System.out.print(" ");
				} System.out.print(" ") System.out.print System.out System System.out " " System.out.print(c[i][j]) System.out.print System.out System System.out c[i][j] c[i] c i j 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 {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] tmpArray = br.readLine().split(" ");
		int n = Integer.parseInt(tmpArray[0]);
		int m = Integer.parseInt(tmpArray[1]);
		int l = Integer.parseInt(tmpArray[2]);

		long[][] a = new long[n][m];
		long[][] b = new long[m][l];
		long[][] c = new long[n][l];

		for(int i = 0; i < n; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		}

		for(int i = 0; i < m; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		}

		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];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			System.out.println();
		}


	}

} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] tmpArray = br.readLine().split(" ");
		int n = Integer.parseInt(tmpArray[0]);
		int m = Integer.parseInt(tmpArray[1]);
		int l = Integer.parseInt(tmpArray[2]);

		long[][] a = new long[n][m];
		long[][] b = new long[m][l];
		long[][] c = new long[n][l];

		for(int i = 0; i < n; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		}

		for(int i = 0; i < m; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		}

		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];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			System.out.println();
		}


	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] tmpArray = br.readLine().split(" ");
		int n = Integer.parseInt(tmpArray[0]);
		int m = Integer.parseInt(tmpArray[1]);
		int l = Integer.parseInt(tmpArray[2]);

		long[][] a = new long[n][m];
		long[][] b = new long[m][l];
		long[][] c = new long[n][l];

		for(int i = 0; i < n; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < m; j++){
				a[i][j] = Long.parseLong(tmpArray[j]);
			}
		}

		for(int i = 0; i < m; i ++){
			tmpArray = br.readLine().split(" ");
			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(tmpArray[j]);
			}
		}

		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];
				}

				if(j != 0 ){
					System.out.print(" ");
				}
				System.out.print(c[i][j]);
			}
			System.out.println();
		}


	}

}