import java.io.*;
import java.util.Arrays;
class Main{
    public static void main(String[] args) throws IOException {
        int i,j,sum;
        int[] A = new int[100];
        int[][] B = new int[100][100];
        int[] n = new int[990];
        String[] str = new String[990];
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        str = in.readLine().split(" ");
        for(i=0;i<2;i++){
            n[i]=Integer.parseInt(str[i]);
        }
        for(i=0;i<n[0];i++){
            str = in.readLine().split(" ");
            for(j=0;j<n[1];j++){
                B[i][j]=Integer.parseInt(str[j]);
            }
        }
        for(i=0;i<n[1];i++){
            A[i] = Integer.parseInt(in.readLine());
        }
        for(i=0;i<n[0];i++){
            sum=0;
            for(j=0;j<n[1];j++){
                sum+=B[i][j]*A[j];
            }
            System.out.println(sum);
        }
        System.out.flush();
    }
} import java.io.*; io.* java import java.util.Arrays; Arrays java.util class Main{
    public static void main(String[] args) throws IOException {
        int i,j,sum;
        int[] A = new int[100];
        int[][] B = new int[100][100];
        int[] n = new int[990];
        String[] str = new String[990];
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        str = in.readLine().split(" ");
        for(i=0;i<2;i++){
            n[i]=Integer.parseInt(str[i]);
        }
        for(i=0;i<n[0];i++){
            str = in.readLine().split(" ");
            for(j=0;j<n[1];j++){
                B[i][j]=Integer.parseInt(str[j]);
            }
        }
        for(i=0;i<n[1];i++){
            A[i] = Integer.parseInt(in.readLine());
        }
        for(i=0;i<n[0];i++){
            sum=0;
            for(j=0;j<n[1];j++){
                sum+=B[i][j]*A[j];
            }
            System.out.println(sum);
        }
        System.out.flush();
    }
} Main public static void main(String[] args) throws IOException {
        int i,j,sum;
        int[] A = new int[100];
        int[][] B = new int[100][100];
        int[] n = new int[990];
        String[] str = new String[990];
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        str = in.readLine().split(" ");
        for(i=0;i<2;i++){
            n[i]=Integer.parseInt(str[i]);
        }
        for(i=0;i<n[0];i++){
            str = in.readLine().split(" ");
            for(j=0;j<n[1];j++){
                B[i][j]=Integer.parseInt(str[j]);
            }
        }
        for(i=0;i<n[1];i++){
            A[i] = Integer.parseInt(in.readLine());
        }
        for(i=0;i<n[0];i++){
            sum=0;
            for(j=0;j<n[1];j++){
                sum+=B[i][j]*A[j];
            }
            System.out.println(sum);
        }
        System.out.flush();
    } main {
        int i,j,sum;
        int[] A = new int[100];
        int[][] B = new int[100][100];
        int[] n = new int[990];
        String[] str = new String[990];
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        str = in.readLine().split(" ");
        for(i=0;i<2;i++){
            n[i]=Integer.parseInt(str[i]);
        }
        for(i=0;i<n[0];i++){
            str = in.readLine().split(" ");
            for(j=0;j<n[1];j++){
                B[i][j]=Integer.parseInt(str[j]);
            }
        }
        for(i=0;i<n[1];i++){
            A[i] = Integer.parseInt(in.readLine());
        }
        for(i=0;i<n[0];i++){
            sum=0;
            for(j=0;j<n[1];j++){
                sum+=B[i][j]*A[j];
            }
            System.out.println(sum);
        }
        System.out.flush();
    } int i i j j sum; sum int[] A = new int[100]; A new int[100] 100 int[][] B = new int[100][100]; B new int[100][100] 100 100 int[] n = new int[990]; n new int[990] 990 String[] str = new String[990]; str new String[990] 990 BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) str = in.readLine().split(" ") str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " for(i=0;i<2;i++){
            n[i]=Integer.parseInt(str[i]);
        } i=0; i=0 i 0 i<2 i 2 i++ i++ i {
            n[i]=Integer.parseInt(str[i]);
        } {
            n[i]=Integer.parseInt(str[i]);
        } n[i]=Integer.parseInt(str[i]) n[i] n i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i for(i=0;i<n[0];i++){
            str = in.readLine().split(" ");
            for(j=0;j<n[1];j++){
                B[i][j]=Integer.parseInt(str[j]);
            }
        } i=0; i=0 i 0 i<n[0] i n[0] n 0 i++ i++ i {
            str = in.readLine().split(" ");
            for(j=0;j<n[1];j++){
                B[i][j]=Integer.parseInt(str[j]);
            }
        } {
            str = in.readLine().split(" ");
            for(j=0;j<n[1];j++){
                B[i][j]=Integer.parseInt(str[j]);
            }
        } str = in.readLine().split(" ") str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " for(j=0;j<n[1];j++){
                B[i][j]=Integer.parseInt(str[j]);
            } j=0; j=0 j 0 j<n[1] j n[1] n 1 j++ j++ j {
                B[i][j]=Integer.parseInt(str[j]);
            } {
                B[i][j]=Integer.parseInt(str[j]);
            } B[i][j]=Integer.parseInt(str[j]) B[i][j] B[i] B i j Integer.parseInt(str[j]) Integer.parseInt Integer str[j] str j for(i=0;i<n[1];i++){
            A[i] = Integer.parseInt(in.readLine());
        } i=0; i=0 i 0 i<n[1] i n[1] n 1 i++ i++ i {
            A[i] = Integer.parseInt(in.readLine());
        } {
            A[i] = Integer.parseInt(in.readLine());
        } A[i] = Integer.parseInt(in.readLine()) A[i] A i Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in for(i=0;i<n[0];i++){
            sum=0;
            for(j=0;j<n[1];j++){
                sum+=B[i][j]*A[j];
            }
            System.out.println(sum);
        } i=0; i=0 i 0 i<n[0] i n[0] n 0 i++ i++ i {
            sum=0;
            for(j=0;j<n[1];j++){
                sum+=B[i][j]*A[j];
            }
            System.out.println(sum);
        } {
            sum=0;
            for(j=0;j<n[1];j++){
                sum+=B[i][j]*A[j];
            }
            System.out.println(sum);
        } sum=0 sum 0 for(j=0;j<n[1];j++){
                sum+=B[i][j]*A[j];
            } j=0; j=0 j 0 j<n[1] j n[1] n 1 j++ j++ j {
                sum+=B[i][j]*A[j];
            } {
                sum+=B[i][j]*A[j];
            } sum+=B[i][j]*A[j] sum B[i][j]*A[j] B[i][j] B[i] B i j A[j] A j System.out.println(sum) System.out.println System.out System System.out sum System.out.flush() System.out.flush System.out System System.out String[] args args
import java.io.*;
import java.util.Arrays;
class Main{
    public static void main(String[] args) throws IOException {
        int i,j,sum;
        int[] A = new int[100];
        int[][] B = new int[100][100];
        int[] n = new int[990];
        String[] str = new String[990];
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        str = in.readLine().split(" ");
        for(i=0;i<2;i++){
            n[i]=Integer.parseInt(str[i]);
        }
        for(i=0;i<n[0];i++){
            str = in.readLine().split(" ");
            for(j=0;j<n[1];j++){
                B[i][j]=Integer.parseInt(str[j]);
            }
        }
        for(i=0;i<n[1];i++){
            A[i] = Integer.parseInt(in.readLine());
        }
        for(i=0;i<n[0];i++){
            sum=0;
            for(j=0;j<n[1];j++){
                sum+=B[i][j]*A[j];
            }
            System.out.println(sum);
        }
        System.out.flush();
    }
}