import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] linesp = line.split(" ");
        int n = Integer.parseInt(linesp[0]);
        int m = Integer.parseInt(linesp[1]);
        int l = Integer.parseInt(linesp[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++) {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        }
        
        for(int i = 0; i < m; i++) {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        }
        
        for(int i = 0; i < n; i++) {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        }
        
        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.println("");
        }
  }
 } import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] linesp = line.split(" ");
        int n = Integer.parseInt(linesp[0]);
        int m = Integer.parseInt(linesp[1]);
        int l = Integer.parseInt(linesp[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++) {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        }
        
        for(int i = 0; i < m; i++) {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        }
        
        for(int i = 0; i < n; i++) {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        }
        
        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.println("");
        }
  }
 } Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] linesp = line.split(" ");
        int n = Integer.parseInt(linesp[0]);
        int m = Integer.parseInt(linesp[1]);
        int l = Integer.parseInt(linesp[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++) {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        }
        
        for(int i = 0; i < m; i++) {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        }
        
        for(int i = 0; i < n; i++) {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        }
        
        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.println("");
        }
  } main {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] linesp = line.split(" ");
        int n = Integer.parseInt(linesp[0]);
        int m = Integer.parseInt(linesp[1]);
        int l = Integer.parseInt(linesp[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++) {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        }
        
        for(int i = 0; i < m; i++) {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        }
        
        for(int i = 0; i < n; i++) {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        }
        
        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.println("");
        }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] linesp = line.split(" "); linesp line.split(" ") line.split line " " int n = Integer.parseInt(linesp[0]); n Integer.parseInt(linesp[0]) Integer.parseInt Integer linesp[0] linesp 0 int m = Integer.parseInt(linesp[1]); m Integer.parseInt(linesp[1]) Integer.parseInt Integer linesp[1] linesp 1 int l = Integer.parseInt(linesp[2]); l Integer.parseInt(linesp[2]) Integer.parseInt Integer linesp[2] linesp 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++) {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        } {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        } String line1 = sc.nextLine(); line1 sc.nextLine() sc.nextLine sc String[] line1sp = line1.split(" "); line1sp line1.split(" ") line1.split line1 " " for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                A[i][j] = Integer.parseInt(line1sp[j]);
            } {
                A[i][j] = Integer.parseInt(line1sp[j]);
            } A[i][j] = Integer.parseInt(line1sp[j]) A[i][j] A[i] A i j Integer.parseInt(line1sp[j]) Integer.parseInt Integer line1sp[j] line1sp j for(int i = 0; i < m; i++) {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        } {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        } String line2 = sc.nextLine(); line2 sc.nextLine() sc.nextLine sc String[] line2sp = line2.split(" "); line2sp line2.split(" ") line2.split line2 " " for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                B[i][j] = Integer.parseInt(line2sp[j]);
            } {
                B[i][j] = Integer.parseInt(line2sp[j]);
            } B[i][j] = Integer.parseInt(line2sp[j]) B[i][j] B[i] B i j Integer.parseInt(line2sp[j]) Integer.parseInt Integer line2sp[j] line2sp j for(int i = 0; i < n; i++) {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        } {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        } for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            } int j = 0; int j = 0; j 0 j < l j l j++ j++ j {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            } {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            } long sum = 0; sum 0 for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                } int k = 0; int k = 0; k 0 k < m k m k++ k++ k {
                    sum += A[i][k] * B[k][j];
                } {
                    sum += A[i][k] * B[k][j];
                } sum += A[i][k] * B[k][j] sum A[i][k] * B[k][j] A[i][k] A[i] A i k B[k][j] B[k] B k j C[i][j] = sum C[i][j] C[i] C i j sum 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.println("");
        } 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.println("");
        } {
            for(int j = 0; j < l; j++) {
                System.out.print(C[i][j]);
                if(j != l - 1) {
                    System.out.print(" ");
                }
            }
            System.out.println("");
        } 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.println("") System.out.println System.out System System.out "" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] linesp = line.split(" ");
        int n = Integer.parseInt(linesp[0]);
        int m = Integer.parseInt(linesp[1]);
        int l = Integer.parseInt(linesp[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++) {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        }
        
        for(int i = 0; i < m; i++) {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        }
        
        for(int i = 0; i < n; i++) {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        }
        
        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.println("");
        }
  }
 } public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] linesp = line.split(" ");
        int n = Integer.parseInt(linesp[0]);
        int m = Integer.parseInt(linesp[1]);
        int l = Integer.parseInt(linesp[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++) {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        }
        
        for(int i = 0; i < m; i++) {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        }
        
        for(int i = 0; i < n; i++) {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        }
        
        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.println("");
        }
  }
 } Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] linesp = line.split(" ");
        int n = Integer.parseInt(linesp[0]);
        int m = Integer.parseInt(linesp[1]);
        int l = Integer.parseInt(linesp[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++) {
            String line1 = sc.nextLine();
            String[] line1sp = line1.split(" ");
            for(int j = 0; j < m; j++) {
                A[i][j] = Integer.parseInt(line1sp[j]);
            }
        }
        
        for(int i = 0; i < m; i++) {
            String line2 = sc.nextLine();
            String[] line2sp = line2.split(" ");
            for(int j = 0; j < l; j++) {
                B[i][j] = Integer.parseInt(line2sp[j]);
            }
        }
        
        for(int i = 0; i < n; i++) {
            for(int j = 0; j < l; j++) {
                long sum = 0;
                for(int k = 0; k < m; k++) {
                    sum += A[i][k] * B[k][j];
                }
                C[i][j] = sum;
            }
        }
        
        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.println("");
        }
  }
 }
