import java.util.Scanner;

public class Main {

	public static final int BIG_NUM  = 2000000000;
	public static final int MOD  = 1000000007;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int M = sc.nextInt();
		int L = sc.nextInt();

		int A[][] = new int[N][M];
		int B[][] = new int[M][L];

		String buf_A[] = new String[M];
		String buf_B[] = new String[L];

		for(int row = 0; row < N; row++){
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		}

		for(int row = 0; row < M; row++){
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		}

		Long ans;

		for(int A_row = 0; A_row < N; A_row++){
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		}
	}
}

 import java.util.Scanner; Scanner java.util public class Main {

	public static final int BIG_NUM  = 2000000000;
	public static final int MOD  = 1000000007;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int M = sc.nextInt();
		int L = sc.nextInt();

		int A[][] = new int[N][M];
		int B[][] = new int[M][L];

		String buf_A[] = new String[M];
		String buf_B[] = new String[L];

		for(int row = 0; row < N; row++){
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		}

		for(int row = 0; row < M; row++){
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		}

		Long ans;

		for(int A_row = 0; A_row < N; A_row++){
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		}
	}
} Main public static final int BIG_NUM  = 2000000000; BIG_NUM 2000000000 public static final int MOD  = 1000000007; MOD 1000000007 public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int M = sc.nextInt();
		int L = sc.nextInt();

		int A[][] = new int[N][M];
		int B[][] = new int[M][L];

		String buf_A[] = new String[M];
		String buf_B[] = new String[L];

		for(int row = 0; row < N; row++){
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		}

		for(int row = 0; row < M; row++){
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		}

		Long ans;

		for(int A_row = 0; A_row < N; A_row++){
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		}
	} main {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int M = sc.nextInt();
		int L = sc.nextInt();

		int A[][] = new int[N][M];
		int B[][] = new int[M][L];

		String buf_A[] = new String[M];
		String buf_B[] = new String[L];

		for(int row = 0; row < N; row++){
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		}

		for(int row = 0; row < M; row++){
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		}

		Long ans;

		for(int A_row = 0; A_row < N; A_row++){
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int M = sc.nextInt(); M sc.nextInt() sc.nextInt sc int L = sc.nextInt(); L sc.nextInt() sc.nextInt sc 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 String buf_A[] = new String[M]; buf_A new String[M] M String buf_B[] = new String[L]; buf_B new String[L] L for(int row = 0; row < N; row++){
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		} int row = 0; int row = 0; row 0 row < N row N row++ row++ row {
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		} {
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		} for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			} int col = 0; int col = 0; col 0 col < M col M col++ col++ col {
				A[row][col] = sc.nextInt();
			} {
				A[row][col] = sc.nextInt();
			} A[row][col] = sc.nextInt() A[row][col] A[row] A row col sc.nextInt() sc.nextInt sc for(int row = 0; row < M; row++){
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		} int row = 0; int row = 0; row 0 row < M row M row++ row++ row {
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		} {
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		} for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			} int col = 0; int col = 0; col 0 col < L col L col++ col++ col {
				B[row][col] = sc.nextInt();
			} {
				B[row][col] = sc.nextInt();
			} B[row][col] = sc.nextInt() B[row][col] B[row] B row col sc.nextInt() sc.nextInt sc Long ans; ans for(int A_row = 0; A_row < N; A_row++){
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		} int A_row = 0; int A_row = 0; A_row 0 A_row < N A_row N A_row++ A_row++ A_row {
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		} {
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		} for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			} int B_col = 0; int B_col = 0; B_col 0 B_col < L B_col L B_col++ B_col++ B_col {
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			} {
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			} ans = 0L ans 0L for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				} int B_row = 0; int B_row = 0; B_row 0 B_row < M B_row M B_row++ B_row++ B_row {
					ans += A[A_row][B_row]*B[B_row][B_col];
				} {
					ans += A[A_row][B_row]*B[B_row][B_col];
				} ans += A[A_row][B_row]*B[B_row][B_col] ans A[A_row][B_row]*B[B_row][B_col] A[A_row][B_row] A[A_row] A A_row B_row B[B_row][B_col] B[B_row] B B_row B_col if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				} B_col == 0 B_col 0 {
					System.out.printf("%d", ans);
				} System.out.printf("%d", ans) System.out.printf System.out System System.out "%d" ans {
					System.out.printf(" %d", ans);
				} System.out.printf(" %d", ans) System.out.printf System.out System System.out " %d" ans System.out.printf("\n") System.out.printf System.out System System.out "\n" String[] args args public class Main {

	public static final int BIG_NUM  = 2000000000;
	public static final int MOD  = 1000000007;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int M = sc.nextInt();
		int L = sc.nextInt();

		int A[][] = new int[N][M];
		int B[][] = new int[M][L];

		String buf_A[] = new String[M];
		String buf_B[] = new String[L];

		for(int row = 0; row < N; row++){
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		}

		for(int row = 0; row < M; row++){
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		}

		Long ans;

		for(int A_row = 0; A_row < N; A_row++){
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		}
	}
} public class Main {

	public static final int BIG_NUM  = 2000000000;
	public static final int MOD  = 1000000007;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int M = sc.nextInt();
		int L = sc.nextInt();

		int A[][] = new int[N][M];
		int B[][] = new int[M][L];

		String buf_A[] = new String[M];
		String buf_B[] = new String[L];

		for(int row = 0; row < N; row++){
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		}

		for(int row = 0; row < M; row++){
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		}

		Long ans;

		for(int A_row = 0; A_row < N; A_row++){
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static final int BIG_NUM  = 2000000000;
	public static final int MOD  = 1000000007;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int M = sc.nextInt();
		int L = sc.nextInt();

		int A[][] = new int[N][M];
		int B[][] = new int[M][L];

		String buf_A[] = new String[M];
		String buf_B[] = new String[L];

		for(int row = 0; row < N; row++){
			for(int col = 0; col < M; col++){
				A[row][col] = sc.nextInt();
			}
		}

		for(int row = 0; row < M; row++){
			for(int col = 0; col < L; col++){
				B[row][col] = sc.nextInt();
			}
		}

		Long ans;

		for(int A_row = 0; A_row < N; A_row++){
			for(int B_col = 0; B_col < L; B_col++){
				ans = 0L;
				for(int B_row = 0; B_row < M; B_row++){
					ans += A[A_row][B_row]*B[B_row][B_col];
				}
				if(B_col == 0){
					System.out.printf("%d", ans);
				}else{
					System.out.printf(" %d", ans);
				}
			}
			System.out.printf("\n");
		}
	}
}


