import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] line2 = line.split(" ");
        int row = Integer.parseInt(line2[0]);
        int column = Integer.parseInt(line2[1]);
        int[][] vec1= new int[row][column];
        int[] vec2 = new int[column];
        for(int j=0;j<row;j++) {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        }
        for(int i=0;i<column;i++) {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        }
        List<Integer> result = vecMul(vec1,vec2);
        print(result,column);
    }
    static void print(List<Integer> res,int column) {
        for(int i=0;i<res.size();i++) {
            System.out.println(res.get(i));
        }    
    }
    static List<Integer> vecMul(int[][] vec1,int[] vec2) {
        List<Integer> res = new ArrayList<Integer>();
        for(int j=0;j<vec1.length;j++){
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        }
        return res;
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] line2 = line.split(" ");
        int row = Integer.parseInt(line2[0]);
        int column = Integer.parseInt(line2[1]);
        int[][] vec1= new int[row][column];
        int[] vec2 = new int[column];
        for(int j=0;j<row;j++) {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        }
        for(int i=0;i<column;i++) {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        }
        List<Integer> result = vecMul(vec1,vec2);
        print(result,column);
    }
    static void print(List<Integer> res,int column) {
        for(int i=0;i<res.size();i++) {
            System.out.println(res.get(i));
        }    
    }
    static List<Integer> vecMul(int[][] vec1,int[] vec2) {
        List<Integer> res = new ArrayList<Integer>();
        for(int j=0;j<vec1.length;j++){
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        }
        return res;
    }
} Main public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] line2 = line.split(" ");
        int row = Integer.parseInt(line2[0]);
        int column = Integer.parseInt(line2[1]);
        int[][] vec1= new int[row][column];
        int[] vec2 = new int[column];
        for(int j=0;j<row;j++) {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        }
        for(int i=0;i<column;i++) {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        }
        List<Integer> result = vecMul(vec1,vec2);
        print(result,column);
    } main {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] line2 = line.split(" ");
        int row = Integer.parseInt(line2[0]);
        int column = Integer.parseInt(line2[1]);
        int[][] vec1= new int[row][column];
        int[] vec2 = new int[column];
        for(int j=0;j<row;j++) {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        }
        for(int i=0;i<column;i++) {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        }
        List<Integer> result = vecMul(vec1,vec2);
        print(result,column);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] line2 = line.split(" "); line2 line.split(" ") line.split line " " int row = Integer.parseInt(line2[0]); row Integer.parseInt(line2[0]) Integer.parseInt Integer line2[0] line2 0 int column = Integer.parseInt(line2[1]); column Integer.parseInt(line2[1]) Integer.parseInt Integer line2[1] line2 1 int[][] vec1= new int[row][column]; vec1 new int[row][column] row column int[] vec2 = new int[column]; vec2 new int[column] column for(int j=0;j<row;j++) {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        } int j=0; int j=0; j 0 j<row j row j++ j++ j {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        } {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        } String v = br.readLine(); v br.readLine() br.readLine br String[] v_ary = v.split(" "); v_ary v.split(" ") v.split v " " for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            } int i=0; int i=0; i 0 i<column i column i++ i++ i {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            } {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            } vec1[j][i] = Integer.parseInt(v_ary[i]) vec1[j][i] vec1[j] vec1 j i Integer.parseInt(v_ary[i]) Integer.parseInt Integer v_ary[i] v_ary i for(int i=0;i<column;i++) {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        } int i=0; int i=0; i 0 i<column i column i++ i++ i {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        } {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        } String v = br.readLine(); v br.readLine() br.readLine br vec2[i] = Integer.parseInt(v) vec2[i] vec2 i Integer.parseInt(v) Integer.parseInt Integer v List<Integer> result = vecMul(vec1,vec2); result vecMul(vec1,vec2) vecMul vec1 vec2 print(result,column) print result column String[] args args static void print(List<Integer> res,int column) {
        for(int i=0;i<res.size();i++) {
            System.out.println(res.get(i));
        }    
    } print {
        for(int i=0;i<res.size();i++) {
            System.out.println(res.get(i));
        }    
    } for(int i=0;i<res.size();i++) {
            System.out.println(res.get(i));
        } int i=0; int i=0; i 0 i<res.size() i res.size() res.size res i++ i++ i {
            System.out.println(res.get(i));
        } {
            System.out.println(res.get(i));
        } System.out.println(res.get(i)) System.out.println System.out System System.out res.get(i) res.get res i List<Integer> res res int column column static List<Integer> vecMul(int[][] vec1,int[] vec2) {
        List<Integer> res = new ArrayList<Integer>();
        for(int j=0;j<vec1.length;j++){
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        }
        return res;
    } vecMul {
        List<Integer> res = new ArrayList<Integer>();
        for(int j=0;j<vec1.length;j++){
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        }
        return res;
    } List<Integer> res = new ArrayList<Integer>(); res new ArrayList<Integer>() for(int j=0;j<vec1.length;j++){
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        } int j=0; int j=0; j 0 j<vec1.length j vec1.length vec1 vec1.length j++ j++ j {
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        } {
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        } int sum = 0; sum 0 for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            } int i=0; int i=0; i 0 i<vec2.length i vec2.length vec2 vec2.length i++ i++ i {
                sum += vec1[j][i] * vec2[i];
            } {
                sum += vec1[j][i] * vec2[i];
            } sum += vec1[j][i] * vec2[i] sum vec1[j][i] * vec2[i] vec1[j][i] vec1[j] vec1 j i vec2[i] vec2 i res.add(new Integer(sum)) res.add res new Integer(sum) return res; res int[][] vec1 vec1 int[] vec2 vec2 public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] line2 = line.split(" ");
        int row = Integer.parseInt(line2[0]);
        int column = Integer.parseInt(line2[1]);
        int[][] vec1= new int[row][column];
        int[] vec2 = new int[column];
        for(int j=0;j<row;j++) {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        }
        for(int i=0;i<column;i++) {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        }
        List<Integer> result = vecMul(vec1,vec2);
        print(result,column);
    }
    static void print(List<Integer> res,int column) {
        for(int i=0;i<res.size();i++) {
            System.out.println(res.get(i));
        }    
    }
    static List<Integer> vecMul(int[][] vec1,int[] vec2) {
        List<Integer> res = new ArrayList<Integer>();
        for(int j=0;j<vec1.length;j++){
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        }
        return res;
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] line2 = line.split(" ");
        int row = Integer.parseInt(line2[0]);
        int column = Integer.parseInt(line2[1]);
        int[][] vec1= new int[row][column];
        int[] vec2 = new int[column];
        for(int j=0;j<row;j++) {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        }
        for(int i=0;i<column;i++) {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        }
        List<Integer> result = vecMul(vec1,vec2);
        print(result,column);
    }
    static void print(List<Integer> res,int column) {
        for(int i=0;i<res.size();i++) {
            System.out.println(res.get(i));
        }    
    }
    static List<Integer> vecMul(int[][] vec1,int[] vec2) {
        List<Integer> res = new ArrayList<Integer>();
        for(int j=0;j<vec1.length;j++){
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        }
        return res;
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] line2 = line.split(" ");
        int row = Integer.parseInt(line2[0]);
        int column = Integer.parseInt(line2[1]);
        int[][] vec1= new int[row][column];
        int[] vec2 = new int[column];
        for(int j=0;j<row;j++) {
            String v = br.readLine();
            String[] v_ary = v.split(" ");
            for(int i=0;i<column;i++) {
                vec1[j][i] = Integer.parseInt(v_ary[i]);
            }        
        }
        for(int i=0;i<column;i++) {
            String v = br.readLine();
            vec2[i] = Integer.parseInt(v);
        }
        List<Integer> result = vecMul(vec1,vec2);
        print(result,column);
    }
    static void print(List<Integer> res,int column) {
        for(int i=0;i<res.size();i++) {
            System.out.println(res.get(i));
        }    
    }
    static List<Integer> vecMul(int[][] vec1,int[] vec2) {
        List<Integer> res = new ArrayList<Integer>();
        for(int j=0;j<vec1.length;j++){
            int sum = 0;
            for(int i=0;i<vec2.length;i++) {
                sum += vec1[j][i] * vec2[i];
            }
            res.add(new Integer(sum));
        }
        return res;
    }
}