import java.util.*;

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        int n = scn.nextInt(), m  = scn.nextInt(), l = scn.nextInt();
        showMatrix(createTable(n, m), createTable(m, l));
    }
    
    private static int[][] createTable(int y, int x) {
        int[][] tbl = new int[y][x];
        for(int i = 0; i < y; i++) {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        }
        return tbl;
    }
    
    private static void showMatrix(int[][] a, int[][] b) {
        for(int i = 0; i < a.length; i++) {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        }
    }
} import java.util.*; util.* java public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        int n = scn.nextInt(), m  = scn.nextInt(), l = scn.nextInt();
        showMatrix(createTable(n, m), createTable(m, l));
    }
    
    private static int[][] createTable(int y, int x) {
        int[][] tbl = new int[y][x];
        for(int i = 0; i < y; i++) {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        }
        return tbl;
    }
    
    private static void showMatrix(int[][] a, int[][] b) {
        for(int i = 0; i < a.length; i++) {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        }
    }
} Main private static final Scanner scn = new Scanner(System.in); scn new Scanner(System.in) public static void main(String[] args) {
        int n = scn.nextInt(), m  = scn.nextInt(), l = scn.nextInt();
        showMatrix(createTable(n, m), createTable(m, l));
    } main {
        int n = scn.nextInt(), m  = scn.nextInt(), l = scn.nextInt();
        showMatrix(createTable(n, m), createTable(m, l));
    } int n = scn.nextInt() n scn.nextInt() scn.nextInt scn m  = scn.nextInt() m scn.nextInt() scn.nextInt scn l = scn.nextInt(); l scn.nextInt() scn.nextInt scn showMatrix(createTable(n, m), createTable(m, l)) showMatrix createTable(n, m) createTable n m createTable(m, l) createTable m l String[] args args private static int[][] createTable(int y, int x) {
        int[][] tbl = new int[y][x];
        for(int i = 0; i < y; i++) {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        }
        return tbl;
    } createTable {
        int[][] tbl = new int[y][x];
        for(int i = 0; i < y; i++) {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        }
        return tbl;
    } int[][] tbl = new int[y][x]; tbl new int[y][x] y x for(int i = 0; i < y; i++) {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        } int i = 0; int i = 0; i 0 i < y i y i++ i++ i {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        } {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        } for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            } int j = 0; int j = 0; j 0 j < x j x j++ j++ j {
                tbl[i][j] = scn.nextInt();
            } {
                tbl[i][j] = scn.nextInt();
            } tbl[i][j] = scn.nextInt() tbl[i][j] tbl[i] tbl i j scn.nextInt() scn.nextInt scn return tbl; tbl int y y int x x private static void showMatrix(int[][] a, int[][] b) {
        for(int i = 0; i < a.length; i++) {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        }
    } showMatrix {
        for(int i = 0; i < a.length; i++) {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        }
    } for(int i = 0; i < a.length; i++) {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        } {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        } StringBuilder sb = new StringBuilder(); sb new StringBuilder() for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            } int j = 0; int j = 0; j 0 j < b[0].length j b[0].length b[0] b 0 b[0].length j++ j++ j {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            } {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            } long v = 0; v 0 for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                } int k = 0; int k = 0; k 0 k < b.length k b.length b b.length k++ k++ k {
                    v += a[i][k] * b[k][j];
                } {
                    v += a[i][k] * b[k][j];
                } v += a[i][k] * b[k][j] v a[i][k] * b[k][j] a[i][k] a[i] a i k b[k][j] b[k] b k j sb.append(v + " ") sb.append sb v + " " v " " System.out.println(sb.toString().trim()) System.out.println System.out System System.out sb.toString().trim() sb.toString().trim sb.toString() sb.toString sb int[][] a a int[][] b b public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        int n = scn.nextInt(), m  = scn.nextInt(), l = scn.nextInt();
        showMatrix(createTable(n, m), createTable(m, l));
    }
    
    private static int[][] createTable(int y, int x) {
        int[][] tbl = new int[y][x];
        for(int i = 0; i < y; i++) {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        }
        return tbl;
    }
    
    private static void showMatrix(int[][] a, int[][] b) {
        for(int i = 0; i < a.length; i++) {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        }
    }
} public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        int n = scn.nextInt(), m  = scn.nextInt(), l = scn.nextInt();
        showMatrix(createTable(n, m), createTable(m, l));
    }
    
    private static int[][] createTable(int y, int x) {
        int[][] tbl = new int[y][x];
        for(int i = 0; i < y; i++) {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        }
        return tbl;
    }
    
    private static void showMatrix(int[][] a, int[][] b) {
        for(int i = 0; i < a.length; i++) {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        }
    }
} Main
import java.util.*;

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        int n = scn.nextInt(), m  = scn.nextInt(), l = scn.nextInt();
        showMatrix(createTable(n, m), createTable(m, l));
    }
    
    private static int[][] createTable(int y, int x) {
        int[][] tbl = new int[y][x];
        for(int i = 0; i < y; i++) {
            for(int j = 0; j < x; j++) {
                tbl[i][j] = scn.nextInt();
            }
        }
        return tbl;
    }
    
    private static void showMatrix(int[][] a, int[][] b) {
        for(int i = 0; i < a.length; i++) {
            StringBuilder sb = new StringBuilder();
            for(int j = 0; j < b[0].length; j++) {
                long v = 0;
                for(int k = 0; k < b.length; k++) {
                    v += a[i][k] * b[k][j];
                }
                sb.append(v + " ");
            }
            System.out.println(sb.toString().trim());
        }
    }
}