import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
class Main{
	public static void main(String[] args)throws NumberFormatException, IOException{
		//System.out.print(" ");
		Scanner scan = new Scanner(System.in);
		ArrayList<String> suite = new ArrayList<String>();
		ArrayList<String> hikaku = new ArrayList<String>();
		ArrayList<Integer> lb = new ArrayList<Integer>();
		ArrayList<Integer> lf = new ArrayList<Integer>();
		ArrayList<Integer> lr = new ArrayList<Integer>();
		ArrayList<Integer> lv = new ArrayList<Integer>();
		int n =scan.nextInt();
		int m =scan.nextInt();
		int a[][] = new int[100][100];
		int b[][] = new int[100][100];
		for(int i =0; i<n; i++){
			for(int ii=0;ii<m;ii++){
				a[i][ii] = scan.nextInt();
			}
		}
		
		for(int i=0;i<m;i++){
			b[0][i] = scan.nextInt(); 
		}
		
		for (int i=0; i<n; i++){
			int keisan = 0;
			for(int ii=0; ii<m; ii++){
				keisan += a[i][ii] * b[0][ii];
			}
			System.out.println(keisan);
		}
	}
} import java.io.IOException; IOException java.io import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args)throws NumberFormatException, IOException{
		//System.out.print(" ");
		Scanner scan = new Scanner(System.in);
		ArrayList<String> suite = new ArrayList<String>();
		ArrayList<String> hikaku = new ArrayList<String>();
		ArrayList<Integer> lb = new ArrayList<Integer>();
		ArrayList<Integer> lf = new ArrayList<Integer>();
		ArrayList<Integer> lr = new ArrayList<Integer>();
		ArrayList<Integer> lv = new ArrayList<Integer>();
		int n =scan.nextInt();
		int m =scan.nextInt();
		int a[][] = new int[100][100];
		int b[][] = new int[100][100];
		for(int i =0; i<n; i++){
			for(int ii=0;ii<m;ii++){
				a[i][ii] = scan.nextInt();
			}
		}
		
		for(int i=0;i<m;i++){
			b[0][i] = scan.nextInt(); 
		}
		
		for (int i=0; i<n; i++){
			int keisan = 0;
			for(int ii=0; ii<m; ii++){
				keisan += a[i][ii] * b[0][ii];
			}
			System.out.println(keisan);
		}
	}
} Main public static void main(String[] args)throws NumberFormatException, IOException{
		//System.out.print(" ");
		Scanner scan = new Scanner(System.in);
		ArrayList<String> suite = new ArrayList<String>();
		ArrayList<String> hikaku = new ArrayList<String>();
		ArrayList<Integer> lb = new ArrayList<Integer>();
		ArrayList<Integer> lf = new ArrayList<Integer>();
		ArrayList<Integer> lr = new ArrayList<Integer>();
		ArrayList<Integer> lv = new ArrayList<Integer>();
		int n =scan.nextInt();
		int m =scan.nextInt();
		int a[][] = new int[100][100];
		int b[][] = new int[100][100];
		for(int i =0; i<n; i++){
			for(int ii=0;ii<m;ii++){
				a[i][ii] = scan.nextInt();
			}
		}
		
		for(int i=0;i<m;i++){
			b[0][i] = scan.nextInt(); 
		}
		
		for (int i=0; i<n; i++){
			int keisan = 0;
			for(int ii=0; ii<m; ii++){
				keisan += a[i][ii] * b[0][ii];
			}
			System.out.println(keisan);
		}
	} main {
		//System.out.print(" ");
		Scanner scan = new Scanner(System.in);
		ArrayList<String> suite = new ArrayList<String>();
		ArrayList<String> hikaku = new ArrayList<String>();
		ArrayList<Integer> lb = new ArrayList<Integer>();
		ArrayList<Integer> lf = new ArrayList<Integer>();
		ArrayList<Integer> lr = new ArrayList<Integer>();
		ArrayList<Integer> lv = new ArrayList<Integer>();
		int n =scan.nextInt();
		int m =scan.nextInt();
		int a[][] = new int[100][100];
		int b[][] = new int[100][100];
		for(int i =0; i<n; i++){
			for(int ii=0;ii<m;ii++){
				a[i][ii] = scan.nextInt();
			}
		}
		
		for(int i=0;i<m;i++){
			b[0][i] = scan.nextInt(); 
		}
		
		for (int i=0; i<n; i++){
			int keisan = 0;
			for(int ii=0; ii<m; ii++){
				keisan += a[i][ii] * b[0][ii];
			}
			System.out.println(keisan);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) ArrayList<String> suite = new ArrayList<String>(); suite new ArrayList<String>() ArrayList<String> hikaku = new ArrayList<String>(); hikaku new ArrayList<String>() ArrayList<Integer> lb = new ArrayList<Integer>(); lb new ArrayList<Integer>() ArrayList<Integer> lf = new ArrayList<Integer>(); lf new ArrayList<Integer>() ArrayList<Integer> lr = new ArrayList<Integer>(); lr new ArrayList<Integer>() ArrayList<Integer> lv = new ArrayList<Integer>(); lv new ArrayList<Integer>() int n =scan.nextInt(); n scan.nextInt() scan.nextInt scan int m =scan.nextInt(); m scan.nextInt() scan.nextInt scan int a[][] = new int[100][100]; a new int[100][100] 100 100 int b[][] = new int[100][100]; b new int[100][100] 100 100 for(int i =0; i<n; i++){
			for(int ii=0;ii<m;ii++){
				a[i][ii] = scan.nextInt();
			}
		} int i =0; int i =0; i 0 i<n i n i++ i++ i {
			for(int ii=0;ii<m;ii++){
				a[i][ii] = scan.nextInt();
			}
		} {
			for(int ii=0;ii<m;ii++){
				a[i][ii] = scan.nextInt();
			}
		} for(int ii=0;ii<m;ii++){
				a[i][ii] = scan.nextInt();
			} int ii=0; int ii=0; ii 0 ii<m ii m ii++ ii++ ii {
				a[i][ii] = scan.nextInt();
			} {
				a[i][ii] = scan.nextInt();
			} a[i][ii] = scan.nextInt() a[i][ii] a[i] a i ii scan.nextInt() scan.nextInt scan for(int i=0;i<m;i++){
			b[0][i] = scan.nextInt(); 
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			b[0][i] = scan.nextInt(); 
		} {
			b[0][i] = scan.nextInt(); 
		} b[0][i] = scan.nextInt() b[0][i] b[0] b 0 i scan.nextInt() scan.nextInt scan for (int i=0; i<n; i++){
			int keisan = 0;
			for(int ii=0; ii<m; ii++){
				keisan += a[i][ii] * b[0][ii];
			}
			System.out.println(keisan);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int keisan = 0;
			for(int ii=0; ii<m; ii++){
				keisan += a[i][ii] * b[0][ii];
			}
			System.out.println(keisan);
		} {
			int keisan = 0;
			for(int ii=0; ii<m; ii++){
				keisan += a[i][ii] * b[0][ii];
			}
			System.out.println(keisan);
		} int keisan = 0; keisan 0 for(int ii=0; ii<m; ii++){
				keisan += a[i][ii] * b[0][ii];
			} int ii=0; int ii=0; ii 0 ii<m ii m ii++ ii++ ii {
				keisan += a[i][ii] * b[0][ii];
			} {
				keisan += a[i][ii] * b[0][ii];
			} keisan += a[i][ii] * b[0][ii] keisan a[i][ii] * b[0][ii] a[i][ii] a[i] a i ii b[0][ii] b[0] b 0 ii System.out.println(keisan) System.out.println System.out System System.out keisan String[] args args
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
class Main{
	public static void main(String[] args)throws NumberFormatException, IOException{
		//System.out.print(" ");
		Scanner scan = new Scanner(System.in);
		ArrayList<String> suite = new ArrayList<String>();
		ArrayList<String> hikaku = new ArrayList<String>();
		ArrayList<Integer> lb = new ArrayList<Integer>();
		ArrayList<Integer> lf = new ArrayList<Integer>();
		ArrayList<Integer> lr = new ArrayList<Integer>();
		ArrayList<Integer> lv = new ArrayList<Integer>();
		int n =scan.nextInt();
		int m =scan.nextInt();
		int a[][] = new int[100][100];
		int b[][] = new int[100][100];
		for(int i =0; i<n; i++){
			for(int ii=0;ii<m;ii++){
				a[i][ii] = scan.nextInt();
			}
		}
		
		for(int i=0;i<m;i++){
			b[0][i] = scan.nextInt(); 
		}
		
		for (int i=0; i<n; i++){
			int keisan = 0;
			for(int ii=0; ii<m; ii++){
				keisan += a[i][ii] * b[0][ii];
			}
			System.out.println(keisan);
		}
	}
}