import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[][] arA = new int [n][m];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		}
		int[] vecb = new int[m];
		for (int i = 0; i < m; i++) {
			vecb[i] = scan.nextInt();
		}
		int[] vecc = new int[n];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		}
		for (int i: vecc) {
			System.out.println(i);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[][] arA = new int [n][m];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		}
		int[] vecb = new int[m];
		for (int i = 0; i < m; i++) {
			vecb[i] = scan.nextInt();
		}
		int[] vecc = new int[n];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		}
		for (int i: vecc) {
			System.out.println(i);
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[][] arA = new int [n][m];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		}
		int[] vecb = new int[m];
		for (int i = 0; i < m; i++) {
			vecb[i] = scan.nextInt();
		}
		int[] vecc = new int[n];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		}
		for (int i: vecc) {
			System.out.println(i);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[][] arA = new int [n][m];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		}
		int[] vecb = new int[m];
		for (int i = 0; i < m; i++) {
			vecb[i] = scan.nextInt();
		}
		int[] vecc = new int[n];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		}
		for (int i: vecc) {
			System.out.println(i);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan int[][] arA = new int [n][m]; arA new int [n][m] n m for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		} {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		} for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				arA[i][j] = scan.nextInt();
			} {
				arA[i][j] = scan.nextInt();
			} arA[i][j] = scan.nextInt() arA[i][j] arA[i] arA i j scan.nextInt() scan.nextInt scan int[] vecb = new int[m]; vecb new int[m] m for (int i = 0; i < m; i++) {
			vecb[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			vecb[i] = scan.nextInt();
		} {
			vecb[i] = scan.nextInt();
		} vecb[i] = scan.nextInt() vecb[i] vecb i scan.nextInt() scan.nextInt scan int[] vecc = new int[n]; vecc new int[n] n for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		} {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		} for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			} int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
				vecc[i] += arA[i][j] * vecb[j];
			} {
				vecc[i] += arA[i][j] * vecb[j];
			} vecc[i] += arA[i][j] * vecb[j] vecc[i] vecc i arA[i][j] * vecb[j] arA[i][j] arA[i] arA i j vecb[j] vecb j for (int i: vecc) {
			System.out.println(i);
		} int i vecc {
			System.out.println(i);
		} {
			System.out.println(i);
		} System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[][] arA = new int [n][m];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		}
		int[] vecb = new int[m];
		for (int i = 0; i < m; i++) {
			vecb[i] = scan.nextInt();
		}
		int[] vecc = new int[n];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		}
		for (int i: vecc) {
			System.out.println(i);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[][] arA = new int [n][m];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		}
		int[] vecb = new int[m];
		for (int i = 0; i < m; i++) {
			vecb[i] = scan.nextInt();
		}
		int[] vecc = new int[n];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		}
		for (int i: vecc) {
			System.out.println(i);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[][] arA = new int [n][m];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				arA[i][j] = scan.nextInt();
			}
		}
		int[] vecb = new int[m];
		for (int i = 0; i < m; i++) {
			vecb[i] = scan.nextInt();
		}
		int[] vecc = new int[n];
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < m; j++) {
				vecc[i] += arA[i][j] * vecb[j];
			}
		}
		for (int i: vecc) {
			System.out.println(i);
		}
	}
}