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

/**
 * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_6_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[][] a = null;
            int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                }
            }
            
            int c[] = new int[n];

            // ?????? x ?????????????????????
            for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            }
            
            // ??¢???????????????
            for (int ci: c){
                System.out.println(ci);
            }

            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[][] a = null;
            int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                }
            }
            
            int c[] = new int[n];

            // ?????? x ?????????????????????
            for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            }
            
            // ??¢???????????????
            for (int ci: c){
                System.out.println(ci);
            }

            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[][] a = null;
            int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                }
            }
            
            int c[] = new int[n];

            // ?????? x ?????????????????????
            for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            }
            
            // ??¢???????????????
            for (int ci: c){
                System.out.println(ci);
            }

            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[][] a = null;
            int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                }
            }
            
            int c[] = new int[n];

            // ?????? x ?????????????????????
            for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            }
            
            // ??¢???????????????
            for (int ci: c){
                System.out.println(ci);
            }

            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[][] a = null;
            int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                }
            }
            
            int c[] = new int[n];

            // ?????? x ?????????????????????
            for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            }
            
            // ??¢???????????????
            for (int ci: c){
                System.out.println(ci);
            }

            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[][] a = null;
            int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                }
            }
            
            int c[] = new int[n];

            // ?????? x ?????????????????????
            for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            }
            
            // ??¢???????????????
            for (int ci: c){
                System.out.println(ci);
            }

            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[][] a = null; a null int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } 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 a = new int[n][] a new int[n][] n b = new int[m] b new int[m] m if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    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(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } int i = stdReader.getLineNumber() - 2; i stdReader.getLineNumber() - 2 stdReader.getLineNumber() stdReader.getLineNumber stdReader 2 String[] inputs = sStr.split(" "); inputs sStr.split(" ") sStr.split sStr " " int j = 0; j 0 a[i] = new int[m] a[i] a i new int[m] m for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    } String input inputs {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    } {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    } a[i][j] = Integer.parseInt(input) a[i][j] a[i] a i j Integer.parseInt(input) Integer.parseInt Integer input j++ j if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    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 {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                } String[] inputsVector = sStr.split(SPACE); inputsVector sStr.split(SPACE) sStr.split sStr SPACE int k = stdReader.getLineNumber() - (2+n); k stdReader.getLineNumber() - (2+n) stdReader.getLineNumber() stdReader.getLineNumber stdReader (2+n) 2 n b[k] = Integer.parseInt(inputsVector[0]) b[k] b k Integer.parseInt(inputsVector[0]) Integer.parseInt Integer inputsVector[0] inputsVector 0 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; int c[] = new int[n]; c new int[n] n for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            } int i =0; int i =0; i 0 i<n i n i++ i++ i {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            } {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            } int temp = 0; temp 0 for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                } int j = 0; int j = 0; j 0 j<m j m j++ j++ j {
                    temp += a[i][j] * b[j];
                } {
                    temp += a[i][j] * b[j];
                } temp += a[i][j] * b[j] temp a[i][j] * b[j] a[i][j] a[i] a i j b[j] b j c[i] = temp c[i] c i temp for (int ci: c){
                System.out.println(ci);
            } int ci c {
                System.out.println(ci);
            } {
                System.out.println(ci);
            } System.out.println(ci) System.out.println System.out System System.out ci 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[][] a = null;
            int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                }
            }
            
            int c[] = new int[n];

            // ?????? x ?????????????????????
            for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            }
            
            // ??¢???????????????
            for (int ci: c){
                System.out.println(ci);
            }

            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[][] a = null;
            int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                }
            }
            
            int c[] = new int[n];

            // ?????? x ?????????????????????
            for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            }
            
            // ??¢???????????????
            for (int ci: c){
                System.out.println(ci);
            }

            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_6_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[][] a = null;
            int[] 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]);
                    // ??????????´???¨??????
                    a = new int[n][];
                    b = new int[m];
                } else if (stdReader.getLineNumber() <= 1 + n) {
                    // 2????????\??????????????????
                    // ??????????????°(0,1,2,...)
                    int i = stdReader.getLineNumber() - 2;
                    String[] inputs = sStr.split(" ");
                    int j = 0;
                    a[i] = new int[m];
                    for (String input : inputs) {
                        a[i][j] = Integer.parseInt(input);
                        j++;
                    }
                } else if (stdReader.getLineNumber() <= 1 + n + m) {
                    String[] inputsVector = sStr.split(SPACE);
                    int k = stdReader.getLineNumber() - (2+n);
                    b[k] = Integer.parseInt(inputsVector[0]);

                    if (stdReader.getLineNumber() == 1+n+m) break;
                }
            }
            
            int c[] = new int[n];

            // ?????? x ?????????????????????
            for (int i =0; i<n; i++) {
                int temp = 0;
                for (int j = 0; j<m; j++){
                    temp += a[i][j] * b[j];
                }
                c[i] = temp;
            }
            
            // ??¢???????????????
            for (int ci: c){
                System.out.println(ci);
            }

            stdReader.close();
        } catch (Exception e) {
            System.exit(-1);
        }
        
    }
}