import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		int n,m;

		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String[] inputline = stdIn.readLine().split(" ");


		n = Integer.parseInt(inputline[0]);
		m = Integer.parseInt(inputline[1]);

		int[][] matrixA = new int[n][m];

		for(int i = 0; i < n; i++) {
			inputline = stdIn.readLine().split(" ");
			for(int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			}
		}

		int[] vectorB = new int[m];

		for(int i = 0; i < m; i++) {
			inputline = stdIn.readLine().split(" ");
			vectorB[i] = Integer.parseInt(inputline[0]);
		}

		int[] vectorC = new int[n];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			}
		}

		for(int i : vectorC) {
			System.out.println(i);
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	public static void main(String[] args) throws IOException {

		int n,m;

		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String[] inputline = stdIn.readLine().split(" ");


		n = Integer.parseInt(inputline[0]);
		m = Integer.parseInt(inputline[1]);

		int[][] matrixA = new int[n][m];

		for(int i = 0; i < n; i++) {
			inputline = stdIn.readLine().split(" ");
			for(int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			}
		}

		int[] vectorB = new int[m];

		for(int i = 0; i < m; i++) {
			inputline = stdIn.readLine().split(" ");
			vectorB[i] = Integer.parseInt(inputline[0]);
		}

		int[] vectorC = new int[n];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			}
		}

		for(int i : vectorC) {
			System.out.println(i);
		}
	}

} Main public static void main(String[] args) throws IOException {

		int n,m;

		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String[] inputline = stdIn.readLine().split(" ");


		n = Integer.parseInt(inputline[0]);
		m = Integer.parseInt(inputline[1]);

		int[][] matrixA = new int[n][m];

		for(int i = 0; i < n; i++) {
			inputline = stdIn.readLine().split(" ");
			for(int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			}
		}

		int[] vectorB = new int[m];

		for(int i = 0; i < m; i++) {
			inputline = stdIn.readLine().split(" ");
			vectorB[i] = Integer.parseInt(inputline[0]);
		}

		int[] vectorC = new int[n];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			}
		}

		for(int i : vectorC) {
			System.out.println(i);
		}
	} main {

		int n,m;

		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String[] inputline = stdIn.readLine().split(" ");


		n = Integer.parseInt(inputline[0]);
		m = Integer.parseInt(inputline[1]);

		int[][] matrixA = new int[n][m];

		for(int i = 0; i < n; i++) {
			inputline = stdIn.readLine().split(" ");
			for(int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			}
		}

		int[] vectorB = new int[m];

		for(int i = 0; i < m; i++) {
			inputline = stdIn.readLine().split(" ");
			vectorB[i] = Integer.parseInt(inputline[0]);
		}

		int[] vectorC = new int[n];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			}
		}

		for(int i : vectorC) {
			System.out.println(i);
		}
	} int n n m; m BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in)); stdIn new BufferedReader(new InputStreamReader(System.in)) String[] inputline = stdIn.readLine().split(" "); inputline stdIn.readLine().split(" ") stdIn.readLine().split stdIn.readLine() stdIn.readLine stdIn " " n = Integer.parseInt(inputline[0]) n Integer.parseInt(inputline[0]) Integer.parseInt Integer inputline[0] inputline 0 m = Integer.parseInt(inputline[1]) m Integer.parseInt(inputline[1]) Integer.parseInt Integer inputline[1] inputline 1 int[][] matrixA = new int[n][m]; matrixA new int[n][m] n m for(int i = 0; i < n; i++) {
			inputline = stdIn.readLine().split(" ");
			for(int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			inputline = stdIn.readLine().split(" ");
			for(int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			}
		} {
			inputline = stdIn.readLine().split(" ");
			for(int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			}
		} inputline = stdIn.readLine().split(" ") inputline stdIn.readLine().split(" ") stdIn.readLine().split stdIn.readLine() stdIn.readLine stdIn " " for(int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			} {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			} matrixA[i][j] = Integer.parseInt(inputline[j]) matrixA[i][j] matrixA[i] matrixA i j Integer.parseInt(inputline[j]) Integer.parseInt Integer inputline[j] inputline j int[] vectorB = new int[m]; vectorB new int[m] m for(int i = 0; i < m; i++) {
			inputline = stdIn.readLine().split(" ");
			vectorB[i] = Integer.parseInt(inputline[0]);
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			inputline = stdIn.readLine().split(" ");
			vectorB[i] = Integer.parseInt(inputline[0]);
		} {
			inputline = stdIn.readLine().split(" ");
			vectorB[i] = Integer.parseInt(inputline[0]);
		} inputline = stdIn.readLine().split(" ") inputline stdIn.readLine().split(" ") stdIn.readLine().split stdIn.readLine() stdIn.readLine stdIn " " vectorB[i] = Integer.parseInt(inputline[0]) vectorB[i] vectorB i Integer.parseInt(inputline[0]) Integer.parseInt Integer inputline[0] inputline 0 int[] vectorC = new int[n]; vectorC new int[n] n for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for(int j = 0; j < m; j++) {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			}
		} {
			for(int j = 0; j < m; j++) {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			}
		} for(int j = 0; j < m; j++) {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			} {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			} vectorC[i] += (matrixA[i][j] * vectorB[j]) vectorC[i] vectorC i (matrixA[i][j] * vectorB[j]) matrixA[i][j] matrixA[i] matrixA i j vectorB[j] vectorB j for(int i : vectorC) {
			System.out.println(i);
		} int i vectorC {
			System.out.println(i);
		} {
			System.out.println(i);
		} System.out.println(i) System.out.println System.out System System.out i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		int n,m;

		BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
		String[] inputline = stdIn.readLine().split(" ");


		n = Integer.parseInt(inputline[0]);
		m = Integer.parseInt(inputline[1]);

		int[][] matrixA = new int[n][m];

		for(int i = 0; i < n; i++) {
			inputline = stdIn.readLine().split(" ");
			for(int j = 0; j < m; j++) {
				matrixA[i][j] = Integer.parseInt(inputline[j]);
			}
		}

		int[] vectorB = new int[m];

		for(int i = 0; i < m; i++) {
			inputline = stdIn.readLine().split(" ");
			vectorB[i] = Integer.parseInt(inputline[0]);
		}

		int[] vectorC = new int[n];

		for(int i = 0; i < n; i++) {
			for(int j = 0; j < m; j++) {
				vectorC[i] += (matrixA[i][j] * vectorB[j]);
			}
		}

		for(int i : vectorC) {
			System.out.println(i);
		}
	}

}