import java.util.*;
  public class Main{
    public static void main(String[] args){
      Scanner scan = new Scanner(System.in);

    	int[][] A=new int[100][100];
    	int[] B=new int[100];
      int C;
     int n =scan.nextInt();
     int m = scan.nextInt();
      for (int s = 0;s<n;s++) {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }}
    	for (int s = 0;s<m;s++)   {
         B[s]=scan.nextInt();
      }
      
      for(int s=0;s<n;s++){C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      }
}} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
      Scanner scan = new Scanner(System.in);

    	int[][] A=new int[100][100];
    	int[] B=new int[100];
      int C;
     int n =scan.nextInt();
     int m = scan.nextInt();
      for (int s = 0;s<n;s++) {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }}
    	for (int s = 0;s<m;s++)   {
         B[s]=scan.nextInt();
      }
      
      for(int s=0;s<n;s++){C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      }
}} Main public static void main(String[] args){
      Scanner scan = new Scanner(System.in);

    	int[][] A=new int[100][100];
    	int[] B=new int[100];
      int C;
     int n =scan.nextInt();
     int m = scan.nextInt();
      for (int s = 0;s<n;s++) {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }}
    	for (int s = 0;s<m;s++)   {
         B[s]=scan.nextInt();
      }
      
      for(int s=0;s<n;s++){C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      }
} main {
      Scanner scan = new Scanner(System.in);

    	int[][] A=new int[100][100];
    	int[] B=new int[100];
      int C;
     int n =scan.nextInt();
     int m = scan.nextInt();
      for (int s = 0;s<n;s++) {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }}
    	for (int s = 0;s<m;s++)   {
         B[s]=scan.nextInt();
      }
      
      for(int s=0;s<n;s++){C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      }
} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[][] A=new int[100][100]; A new int[100][100] 100 100 int[] B=new int[100]; B new int[100] 100 int C; C int n =scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan for (int s = 0;s<n;s++) {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }} int s = 0; int s = 0; s 0 s<n s n s++ s++ s {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }} {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }} for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      } int t =0; int t =0; t 0 t<m t m t++ t++ t {
        A[s][t]=scan.nextInt();
      } {
        A[s][t]=scan.nextInt();
      } A[s][t]=scan.nextInt() A[s][t] A[s] A s t scan.nextInt() scan.nextInt scan for (int s = 0;s<m;s++)   {
         B[s]=scan.nextInt();
      } int s = 0; int s = 0; s 0 s<m s m s++ s++ s {
         B[s]=scan.nextInt();
      } {
         B[s]=scan.nextInt();
      } B[s]=scan.nextInt() B[s] B s scan.nextInt() scan.nextInt scan for(int s=0;s<n;s++){C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      } int s=0; int s=0; s 0 s<n s n s++ s++ s {C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      } {C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      } C=0 C 0 for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        } int t=0; int t=0; t 0 t<m t m t++ t++ t {
          C += A[s][t]*B[t];
        } {
          C += A[s][t]*B[t];
        } C += A[s][t]*B[t] C A[s][t]*B[t] A[s][t] A[s] A s t B[t] B t System.out.println(C) System.out.println System.out System System.out C String[] args args public class Main{
    public static void main(String[] args){
      Scanner scan = new Scanner(System.in);

    	int[][] A=new int[100][100];
    	int[] B=new int[100];
      int C;
     int n =scan.nextInt();
     int m = scan.nextInt();
      for (int s = 0;s<n;s++) {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }}
    	for (int s = 0;s<m;s++)   {
         B[s]=scan.nextInt();
      }
      
      for(int s=0;s<n;s++){C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      }
}} public class Main{
    public static void main(String[] args){
      Scanner scan = new Scanner(System.in);

    	int[][] A=new int[100][100];
    	int[] B=new int[100];
      int C;
     int n =scan.nextInt();
     int m = scan.nextInt();
      for (int s = 0;s<n;s++) {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }}
    	for (int s = 0;s<m;s++)   {
         B[s]=scan.nextInt();
      }
      
      for(int s=0;s<n;s++){C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      }
}} Main
import java.util.*;
  public class Main{
    public static void main(String[] args){
      Scanner scan = new Scanner(System.in);

    	int[][] A=new int[100][100];
    	int[] B=new int[100];
      int C;
     int n =scan.nextInt();
     int m = scan.nextInt();
      for (int s = 0;s<n;s++) {
        for(int t =0;t<m;t++){
        A[s][t]=scan.nextInt();
      }}
    	for (int s = 0;s<m;s++)   {
         B[s]=scan.nextInt();
      }
      
      for(int s=0;s<n;s++){C=0;
        for(int t=0;t<m;t++){
          C += A[s][t]*B[t];
        }
        System.out.println(C);
      }
}}