import java.io.InputStreamReader;
import java.io.LineNumberReader;

/**
 * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_7_D
 * 
 * @author eitatsuro
 * 
 */
public class Main {
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            int n = 0;
            int m = 0;
            int l = 0;
            long[][] a = null;
            long[][] b = null;
            while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            }
            
            double c[][] = new double[n][l];
            
            // ?????? x ???????????????
            double temp = 0;
            for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            }
            
            // ??¢???????????????
            for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            }
            
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
        
    }
} import java.io.InputStreamReader; InputStreamReader java.io import java.io.LineNumberReader; LineNumberReader java.io public class Main {
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            int n = 0;
            int m = 0;
            int l = 0;
            long[][] a = null;
            long[][] b = null;
            while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            }
            
            double c[][] = new double[n][l];
            
            // ?????? x ???????????????
            double temp = 0;
            for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            }
            
            // ??¢???????????????
            for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            }
            
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
        
    }
} Main private final static String SPACE = " "; SPACE " " public static void main(String[] args) {
        try {
            LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            int n = 0;
            int m = 0;
            int l = 0;
            long[][] a = null;
            long[][] b = null;
            while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            }
            
            double c[][] = new double[n][l];
            
            // ?????? x ???????????????
            double temp = 0;
            for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            }
            
            // ??¢???????????????
            for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            }
            
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
        
    } main {
        try {
            LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            int n = 0;
            int m = 0;
            int l = 0;
            long[][] a = null;
            long[][] b = null;
            while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            }
            
            double c[][] = new double[n][l];
            
            // ?????? x ???????????????
            double temp = 0;
            for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            }
            
            // ??¢???????????????
            for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            }
            
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
        
    } try {
            LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            int n = 0;
            int m = 0;
            int l = 0;
            long[][] a = null;
            long[][] b = null;
            while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            }
            
            double c[][] = new double[n][l];
            
            // ?????? x ???????????????
            double temp = 0;
            for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            }
            
            // ??¢???????????????
            for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            }
            
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        } catch (Exception e) {
            System.exit(-1);
        } Exception e {
            System.exit(-1);
        } System.exit(-1) System.exit System -1 1 {
            LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            int n = 0;
            int m = 0;
            int l = 0;
            long[][] a = null;
            long[][] b = null;
            while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            }
            
            double c[][] = new double[n][l];
            
            // ?????? x ???????????????
            double temp = 0;
            for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            }
            
            // ??¢???????????????
            for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            }
            
            stdReader.close();
        } LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in)); stdReader new LineNumberReader(
                    new InputStreamReader(System.in)) String sStr; sStr int n = 0; n 0 int m = 0; m 0 int l = 0; l 0 long[][] a = null; a null long[][] b = null; b null while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            } (sStr = stdReader.readLine()) != null (sStr = stdReader.readLine()) sStr stdReader.readLine() stdReader.readLine stdReader null {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            } if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                } stdReader.getLineNumber() == 1 stdReader.getLineNumber() stdReader.getLineNumber stdReader 1 {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } String[] inputs = sStr.split(" "); inputs sStr.split(" ") sStr.split sStr " " n = Integer.valueOf(inputs[0]) n Integer.valueOf(inputs[0]) Integer.valueOf Integer inputs[0] inputs 0 m = Integer.valueOf(inputs[1]) m Integer.valueOf(inputs[1]) Integer.valueOf Integer inputs[1] inputs 1 l = Integer.valueOf(inputs[2]) l Integer.valueOf(inputs[2]) Integer.valueOf Integer inputs[2] inputs 2 a = new long[n][m] a new long[n][m] n m b = new long[m][l] b new long[m][l] m l if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                } stdReader.getLineNumber() <= 1 + n stdReader.getLineNumber() stdReader.getLineNumber stdReader 1 + n 1 n {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } int i = stdReader.getLineNumber() - 2; i stdReader.getLineNumber() - 2 stdReader.getLineNumber() stdReader.getLineNumber stdReader 2 String[] inputs = sStr.split(SPACE); inputs sStr.split(SPACE) sStr.split sStr SPACE for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    } int j=0; int j=0; j 0 j<m j m j++ j++ j {
                        a[i][j] = Long.parseLong(inputs[j]);
                    } {
                        a[i][j] = Long.parseLong(inputs[j]);
                    } a[i][j] = Long.parseLong(inputs[j]) a[i][j] a[i] a i j Long.parseLong(inputs[j]) Long.parseLong Long inputs[j] inputs j if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                } stdReader.getLineNumber() <= 1 + n + m stdReader.getLineNumber() stdReader.getLineNumber stdReader 1 + n + m 1 + n + m 1 n m {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                } int k = stdReader.getLineNumber() - (2 + n); k stdReader.getLineNumber() - (2 + n) stdReader.getLineNumber() stdReader.getLineNumber stdReader (2 + n) 2 n String[] inputs = sStr.split(SPACE); inputs sStr.split(SPACE) sStr.split sStr SPACE for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    } int j=0; int j=0; j 0 j<l j l j++ j++ j {
                        b[k][j] = Long.parseLong(inputs[j]);
                    } {
                        b[k][j] = Long.parseLong(inputs[j]);
                    } b[k][j] = Long.parseLong(inputs[j]) b[k][j] b[k] b k j Long.parseLong(inputs[j]) Long.parseLong Long inputs[j] inputs j if (stdReader.getLineNumber() == 1 + n + m)
                        break; stdReader.getLineNumber() == 1 + n + m stdReader.getLineNumber() stdReader.getLineNumber stdReader 1 + n + m 1 + n + m 1 n m break; double c[][] = new double[n][l]; c new double[n][l] n l double temp = 0; temp 0 for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            } int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            } {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            } for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                } {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                } temp = 0 temp 0 for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                        temp += a[i][j] * b[j][k];
                    } {
                        temp += a[i][j] * b[j][k];
                    } temp += a[i][j] * b[j][k] temp a[i][j] * b[j][k] a[i][j] a[i] a i j b[j][k] b[j] b j k c[i][k] = temp c[i][k] c[i] c i k temp for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            } {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            } for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                } int k = 0; int k = 0; k 0 k < l k l k++ k++ k {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                } {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                } System.out.print(String.format("%.0f",  c[i][k])) System.out.print System.out System System.out String.format("%.0f",  c[i][k]) String.format String "%.0f" c[i][k] c[i] c i k if (k < l - 1)
                        System.out.print(SPACE); k < l - 1 k l - 1 l 1 System.out.print(SPACE) System.out.print System.out System System.out SPACE System.out.println() System.out.println System.out System System.out stdReader.close() stdReader.close stdReader String[] args args public class Main {
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            int n = 0;
            int m = 0;
            int l = 0;
            long[][] a = null;
            long[][] b = null;
            while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            }
            
            double c[][] = new double[n][l];
            
            // ?????? x ???????????????
            double temp = 0;
            for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            }
            
            // ??¢???????????????
            for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            }
            
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
        
    }
} public class Main {
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            int n = 0;
            int m = 0;
            int l = 0;
            long[][] a = null;
            long[][] b = null;
            while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            }
            
            double c[][] = new double[n][l];
            
            // ?????? x ???????????????
            double temp = 0;
            for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            }
            
            // ??¢???????????????
            for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            }
            
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
        
    }
} Main
import java.io.InputStreamReader;
import java.io.LineNumberReader;

/**
 * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_7_D
 * 
 * @author eitatsuro
 * 
 */
public class Main {
    private final static String SPACE = " ";
    
    public static void main(String[] args) {
        try {
            LineNumberReader stdReader = new LineNumberReader(
                    new InputStreamReader(System.in));
            
            String sStr;
            int n = 0;
            int m = 0;
            int l = 0;
            long[][] a = null;
            long[][] b = null;
            while ((sStr = stdReader.readLine()) != null) {
                
                // ????????????????????????
                if (stdReader.getLineNumber() == 1) {
                    String[] inputs = sStr.split(" ");
                    n = Integer.valueOf(inputs[0]);
                    m = Integer.valueOf(inputs[1]);
                    l = Integer.valueOf(inputs[2]);
                    // ??????????´???¨??????
                    a = new long[n][m];
                    b = new long[m][l];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<m; j++) {
                        a[i][j] = Long.parseLong(inputs[j]);
                    }

                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    int k = stdReader.getLineNumber() - (2 + n);
                    String[] inputs = sStr.split(SPACE);
                    for (int j=0; j<l; j++) {
                        b[k][j] = Long.parseLong(inputs[j]);
                    }
                    if (stdReader.getLineNumber() == 1 + n + m)
                        break;
                }
            }
            
            double c[][] = new double[n][l];
            
            // ?????? x ???????????????
            double temp = 0;
            for (int k = 0; k < l; k++) {
                for (int i = 0; i < n; i++) {
                    temp = 0;
                    for (int j = 0; j < m; j++) {
                        temp += a[i][j] * b[j][k];
                    }
                    c[i][k] = temp;
                }
            }
            
            // ??¢???????????????
            for (int i = 0; i < n; i++) {
                for (int k = 0; k < l; k++) {
                    System.out.print(String.format("%.0f",  c[i][k]));
//                    System.out.print( c[i][k]);
                    if (k < l - 1)
                        System.out.print(SPACE);
                }
                System.out.println();
            }
            
            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
        
    }
}