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

class Main{

	public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] token = br.readLine().split(" ");
		int n = Integer.parseInt(token[0]);
		int m = Integer.parseInt(token[1]);
		int l = Integer.parseInt(token[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];

		for(int i = 0; i < n; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < m; j++){
				a[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < m; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			}
		}

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

	public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] token = br.readLine().split(" ");
		int n = Integer.parseInt(token[0]);
		int m = Integer.parseInt(token[1]);
		int l = Integer.parseInt(token[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];

		for(int i = 0; i < n; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < m; j++){
				a[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < m; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			}
		}

	}
} Main public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] token = br.readLine().split(" ");
		int n = Integer.parseInt(token[0]);
		int m = Integer.parseInt(token[1]);
		int l = Integer.parseInt(token[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];

		for(int i = 0; i < n; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < m; j++){
				a[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < m; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			}
		}

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] token = br.readLine().split(" ");
		int n = Integer.parseInt(token[0]);
		int m = Integer.parseInt(token[1]);
		int l = Integer.parseInt(token[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];

		for(int i = 0; i < n; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < m; j++){
				a[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < m; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			}
		}

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

			token = br.readLine().split(" ");

			for(int j = 0; j < m; j++){
				a[i][j] = Integer.parseInt(token[j]);
			}

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {

			token = br.readLine().split(" ");

			for(int j = 0; j < m; j++){
				a[i][j] = Integer.parseInt(token[j]);
			}

		} {

			token = br.readLine().split(" ");

			for(int j = 0; j < m; j++){
				a[i][j] = Integer.parseInt(token[j]);
			}

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

			token = br.readLine().split(" ");

			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(token[j]);
			}

		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {

			token = br.readLine().split(" ");

			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(token[j]);
			}

		} {

			token = br.readLine().split(" ");

			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(token[j]);
			}

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

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					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++){

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			}
		} {
			for(int j = 0; j < l; j++){

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			}
		} for(int j = 0; j < l; j++){

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			} int j = 0; int j = 0; j 0 j < l j l j++ j++ j {

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			} {

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			} long ans = 0; ans 0 for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				} int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
					ans += a[i][k] * b[k][j];
				} {
					ans += a[i][k] * b[k][j];
				} ans += a[i][k] * b[k][j] ans 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(ans) System.out.print System.out System System.out ans if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				} 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("\n") System.out.print System.out System System.out "\n" String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{

	public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] token = br.readLine().split(" ");
		int n = Integer.parseInt(token[0]);
		int m = Integer.parseInt(token[1]);
		int l = Integer.parseInt(token[2]);
		int[][] a = new int[n][m];
		int[][] b = new int[m][l];

		for(int i = 0; i < n; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < m; j++){
				a[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < m; i++){

			token = br.readLine().split(" ");

			for(int j = 0; j < l; j++){
				b[i][j] = Integer.parseInt(token[j]);
			}

		}

		for(int i = 0; i < n; i++){
			for(int j = 0; j < l; j++){

				long ans = 0;

				for(int k = 0; k < m; k++){
					ans += a[i][k] * b[k][j];
				}

				System.out.print(ans);

				if(j != l - 1){
					System.out.print(" ");
				}else{
					System.out.print("\n");
				}

			}
		}

	}
}