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[][] matrix_A = new int[n][m];
		int[] matrix_B = new int[m];
		int[] matrix_C = new int[n];
		for(int i = 0; i<n; i++){
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		}

		for(int i=0;i<m;i++){
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		}

		for(int i = 0;i<n; i++){
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		}

		for(int i = 0; i<matrix_C.length; i++){
			System.out.println(matrix_C[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[][] matrix_A = new int[n][m];
		int[] matrix_B = new int[m];
		int[] matrix_C = new int[n];
		for(int i = 0; i<n; i++){
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		}

		for(int i=0;i<m;i++){
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		}

		for(int i = 0;i<n; i++){
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		}

		for(int i = 0; i<matrix_C.length; i++){
			System.out.println(matrix_C[i]);
		}  
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[][] matrix_A = new int[n][m];
		int[] matrix_B = new int[m];
		int[] matrix_C = new int[n];
		for(int i = 0; i<n; i++){
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		}

		for(int i=0;i<m;i++){
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		}

		for(int i = 0;i<n; i++){
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		}

		for(int i = 0; i<matrix_C.length; i++){
			System.out.println(matrix_C[i]);
		}  
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		int[][] matrix_A = new int[n][m];
		int[] matrix_B = new int[m];
		int[] matrix_C = new int[n];
		for(int i = 0; i<n; i++){
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		}

		for(int i=0;i<m;i++){
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		}

		for(int i = 0;i<n; i++){
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		}

		for(int i = 0; i<matrix_C.length; i++){
			System.out.println(matrix_C[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[][] matrix_A = new int[n][m]; matrix_A new int[n][m] n m int[] matrix_B = new int[m]; matrix_B new int[m] m int[] matrix_C = new int[n]; matrix_C new int[n] n for(int i = 0; i<n; i++){
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		} int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		} {
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		} for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			} int j = 0; int j = 0; j 0 j<m j m j++ j++ j {
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			} {
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			} int matrix_element = scan.nextInt(); matrix_element scan.nextInt() scan.nextInt scan matrix_A[i][j] = matrix_element matrix_A[i][j] matrix_A[i] matrix_A i j matrix_element for(int i=0;i<m;i++){
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		} {
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		} int matrix_element2 = scan.nextInt(); matrix_element2 scan.nextInt() scan.nextInt scan matrix_B[i] = matrix_element2 matrix_B[i] matrix_B i matrix_element2 for(int i = 0;i<n; i++){
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		} int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		} {
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		} for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			} int j = 0; int j = 0; j 0 j<m j m j++ j++ j {
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			} {
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			} matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j] matrix_C[i] matrix_C i matrix_C[i]+matrix_A[i][j] * matrix_B[j] matrix_C[i] matrix_C i matrix_A[i][j] * matrix_B[j] matrix_A[i][j] matrix_A[i] matrix_A i j matrix_B[j] matrix_B j for(int i = 0; i<matrix_C.length; i++){
			System.out.println(matrix_C[i]);
		} int i = 0; int i = 0; i 0 i<matrix_C.length i matrix_C.length matrix_C matrix_C.length i++ i++ i {
			System.out.println(matrix_C[i]);
		} {
			System.out.println(matrix_C[i]);
		} System.out.println(matrix_C[i]) System.out.println System.out System System.out matrix_C[i] matrix_C 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[][] matrix_A = new int[n][m];
		int[] matrix_B = new int[m];
		int[] matrix_C = new int[n];
		for(int i = 0; i<n; i++){
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		}

		for(int i=0;i<m;i++){
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		}

		for(int i = 0;i<n; i++){
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		}

		for(int i = 0; i<matrix_C.length; i++){
			System.out.println(matrix_C[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[][] matrix_A = new int[n][m];
		int[] matrix_B = new int[m];
		int[] matrix_C = new int[n];
		for(int i = 0; i<n; i++){
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		}

		for(int i=0;i<m;i++){
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		}

		for(int i = 0;i<n; i++){
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		}

		for(int i = 0; i<matrix_C.length; i++){
			System.out.println(matrix_C[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[][] matrix_A = new int[n][m];
		int[] matrix_B = new int[m];
		int[] matrix_C = new int[n];
		for(int i = 0; i<n; i++){
			for(int j = 0;j<m;j++){
				int matrix_element = scan.nextInt();
				matrix_A[i][j] = matrix_element;
			}
		}

		for(int i=0;i<m;i++){
			int matrix_element2 = scan.nextInt();
			matrix_B[i] = matrix_element2;
		}

		for(int i = 0;i<n; i++){
			for(int j = 0; j<m; j++){
				matrix_C[i] = matrix_C[i]+matrix_A[i][j] * matrix_B[j];
			}
		}

		for(int i = 0; i<matrix_C.length; i++){
			System.out.println(matrix_C[i]);
		}  
	}
}