import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        String[] nm=str.split(" ");
         
        int n=Integer.parseInt(nm[0]);
        int m=Integer.parseInt(nm[1]);
        int[][] a=new int [n+1][m+1];
         
        for(int i=1;i<=n;i++){
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        }
        int [] b=new int [m+1];
         
        for(int i=1;i<=m;i++){
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        }
         
        int c[]=new int[n+1];
        Arrays.fill(c,0); //c[]に初期値0を設定     
      
        //行列Cを算出
        for(int j=1;j<=n;j++){
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        String[] nm=str.split(" ");
         
        int n=Integer.parseInt(nm[0]);
        int m=Integer.parseInt(nm[1]);
        int[][] a=new int [n+1][m+1];
         
        for(int i=1;i<=n;i++){
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        }
        int [] b=new int [m+1];
         
        for(int i=1;i<=m;i++){
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        }
         
        int c[]=new int[n+1];
        Arrays.fill(c,0); //c[]に初期値0を設定     
      
        //行列Cを算出
        for(int j=1;j<=n;j++){
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        }
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        String[] nm=str.split(" ");
         
        int n=Integer.parseInt(nm[0]);
        int m=Integer.parseInt(nm[1]);
        int[][] a=new int [n+1][m+1];
         
        for(int i=1;i<=n;i++){
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        }
        int [] b=new int [m+1];
         
        for(int i=1;i<=m;i++){
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        }
         
        int c[]=new int[n+1];
        Arrays.fill(c,0); //c[]に初期値0を設定     
      
        //行列Cを算出
        for(int j=1;j<=n;j++){
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        }
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        String[] nm=str.split(" ");
         
        int n=Integer.parseInt(nm[0]);
        int m=Integer.parseInt(nm[1]);
        int[][] a=new int [n+1][m+1];
         
        for(int i=1;i<=n;i++){
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        }
        int [] b=new int [m+1];
         
        for(int i=1;i<=m;i++){
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        }
         
        int c[]=new int[n+1];
        Arrays.fill(c,0); //c[]に初期値0を設定     
      
        //行列Cを算出
        for(int j=1;j<=n;j++){
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        }
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str=br.readLine(); str br.readLine() br.readLine br String[] nm=str.split(" "); nm str.split(" ") str.split str " " int n=Integer.parseInt(nm[0]); n Integer.parseInt(nm[0]) Integer.parseInt Integer nm[0] nm 0 int m=Integer.parseInt(nm[1]); m Integer.parseInt(nm[1]) Integer.parseInt Integer nm[1] nm 1 int[][] a=new int [n+1][m+1]; a new int [n+1][m+1] n+1 n 1 m+1 m 1 for(int i=1;i<=n;i++){
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        } int i=1; int i=1; i 1 i<=n i n i++ i++ i {
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        } {
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        } str=br.readLine() str br.readLine() br.readLine br String[] div=str.split(" "); div str.split(" ") str.split str " " for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            } int j=1; int j=1; j 1 j<=m j m j++ j++ j {
                a[i][j]=Integer.parseInt(div[j-1]);
            } {
                a[i][j]=Integer.parseInt(div[j-1]);
            } a[i][j]=Integer.parseInt(div[j-1]) a[i][j] a[i] a i j Integer.parseInt(div[j-1]) Integer.parseInt Integer div[j-1] div j-1 j 1 int [] b=new int [m+1]; b new int [m+1] m+1 m 1 for(int i=1;i<=m;i++){
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        } int i=1; int i=1; i 1 i<=m i m i++ i++ i {
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        } {
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        } str=br.readLine() str br.readLine() br.readLine br b[i]=Integer.parseInt(str) b[i] b i Integer.parseInt(str) Integer.parseInt Integer str int c[]=new int[n+1]; c new int[n+1] n+1 n 1 Arrays.fill(c,0) Arrays.fill Arrays c 0 for(int j=1;j<=n;j++){
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        } int j=1; int j=1; j 1 j<=n j n j++ j++ j {
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        } {
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        } for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            } int i=1; int i=1; i 1 i<=m i m i++ i++ i {
                c[j]+=a[j][i]*b[i];
            } {
                c[j]+=a[j][i]*b[i];
            } c[j]+=a[j][i]*b[i] c[j] c j a[j][i]*b[i] a[j][i] a[j] a j i b[i] b i System.out.println(c[j]) System.out.println System.out System System.out c[j] c j String[] args args public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        String[] nm=str.split(" ");
         
        int n=Integer.parseInt(nm[0]);
        int m=Integer.parseInt(nm[1]);
        int[][] a=new int [n+1][m+1];
         
        for(int i=1;i<=n;i++){
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        }
        int [] b=new int [m+1];
         
        for(int i=1;i<=m;i++){
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        }
         
        int c[]=new int[n+1];
        Arrays.fill(c,0); //c[]に初期値0を設定     
      
        //行列Cを算出
        for(int j=1;j<=n;j++){
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        String[] nm=str.split(" ");
         
        int n=Integer.parseInt(nm[0]);
        int m=Integer.parseInt(nm[1]);
        int[][] a=new int [n+1][m+1];
         
        for(int i=1;i<=n;i++){
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        }
        int [] b=new int [m+1];
         
        for(int i=1;i<=m;i++){
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        }
         
        int c[]=new int[n+1];
        Arrays.fill(c,0); //c[]に初期値0を設定     
      
        //行列Cを算出
        for(int j=1;j<=n;j++){
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String str=br.readLine();
        String[] nm=str.split(" ");
         
        int n=Integer.parseInt(nm[0]);
        int m=Integer.parseInt(nm[1]);
        int[][] a=new int [n+1][m+1];
         
        for(int i=1;i<=n;i++){
            str=br.readLine();
            String[] div=str.split(" ");
            for(int j=1;j<=m;j++){
                a[i][j]=Integer.parseInt(div[j-1]);
            }
        }
        int [] b=new int [m+1];
         
        for(int i=1;i<=m;i++){
            str=br.readLine();
            b[i]=Integer.parseInt(str);
        }
         
        int c[]=new int[n+1];
        Arrays.fill(c,0); //c[]に初期値0を設定     
      
        //行列Cを算出
        for(int j=1;j<=n;j++){
            for(int i=1;i<=m;i++){
                c[j]+=a[j][i]*b[i];
            }
            System.out.println(c[j]);
        }
    }
}