import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int row_cout	=	sc.nextInt();
		int column_cout	=	sc.nextInt();

		int[][]	matrix			=	new int[row_cout][column_cout];
		int[]	vector			=	new int[column_cout];
		int[]	multiplication	=	new int[row_cout];

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		}

		for(int column = 0; column < column_cout; column++) {
			vector[column] = sc.nextInt();
		}
		sc.close();

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		}

		for(int row = 0; row < row_cout; row++) {
			System.out.println(multiplication[row]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int row_cout	=	sc.nextInt();
		int column_cout	=	sc.nextInt();

		int[][]	matrix			=	new int[row_cout][column_cout];
		int[]	vector			=	new int[column_cout];
		int[]	multiplication	=	new int[row_cout];

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		}

		for(int column = 0; column < column_cout; column++) {
			vector[column] = sc.nextInt();
		}
		sc.close();

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		}

		for(int row = 0; row < row_cout; row++) {
			System.out.println(multiplication[row]);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int row_cout	=	sc.nextInt();
		int column_cout	=	sc.nextInt();

		int[][]	matrix			=	new int[row_cout][column_cout];
		int[]	vector			=	new int[column_cout];
		int[]	multiplication	=	new int[row_cout];

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		}

		for(int column = 0; column < column_cout; column++) {
			vector[column] = sc.nextInt();
		}
		sc.close();

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		}

		for(int row = 0; row < row_cout; row++) {
			System.out.println(multiplication[row]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int row_cout	=	sc.nextInt();
		int column_cout	=	sc.nextInt();

		int[][]	matrix			=	new int[row_cout][column_cout];
		int[]	vector			=	new int[column_cout];
		int[]	multiplication	=	new int[row_cout];

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		}

		for(int column = 0; column < column_cout; column++) {
			vector[column] = sc.nextInt();
		}
		sc.close();

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		}

		for(int row = 0; row < row_cout; row++) {
			System.out.println(multiplication[row]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int row_cout	=	sc.nextInt(); row_cout sc.nextInt() sc.nextInt sc int column_cout	=	sc.nextInt(); column_cout sc.nextInt() sc.nextInt sc int[][]	matrix			=	new int[row_cout][column_cout]; matrix new int[row_cout][column_cout] row_cout column_cout int[]	vector			=	new int[column_cout]; vector new int[column_cout] column_cout int[]	multiplication	=	new int[row_cout]; multiplication new int[row_cout] row_cout for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		} int row = 0; int row = 0; row 0 row < row_cout row row_cout row++ row++ row {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		} {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		} for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			} int column = 0; int column = 0; column 0 column < column_cout column column_cout column++ column++ column {
				matrix[row][column] = sc.nextInt();
			} {
				matrix[row][column] = sc.nextInt();
			} matrix[row][column] = sc.nextInt() matrix[row][column] matrix[row] matrix row column sc.nextInt() sc.nextInt sc for(int column = 0; column < column_cout; column++) {
			vector[column] = sc.nextInt();
		} int column = 0; int column = 0; column 0 column < column_cout column column_cout column++ column++ column {
			vector[column] = sc.nextInt();
		} {
			vector[column] = sc.nextInt();
		} vector[column] = sc.nextInt() vector[column] vector column sc.nextInt() sc.nextInt sc sc.close() sc.close sc for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		} int row = 0; int row = 0; row 0 row < row_cout row row_cout row++ row++ row {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		} {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		} for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			} int column = 0; int column = 0; column 0 column < column_cout column column_cout column++ column++ column {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			} {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			} multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]) multiplication[row] multiplication row multiplication[row] + (matrix[row][column] * vector[column]) multiplication[row] multiplication row (matrix[row][column] * vector[column]) matrix[row][column] matrix[row] matrix row column vector[column] vector column for(int row = 0; row < row_cout; row++) {
			System.out.println(multiplication[row]);
		} int row = 0; int row = 0; row 0 row < row_cout row row_cout row++ row++ row {
			System.out.println(multiplication[row]);
		} {
			System.out.println(multiplication[row]);
		} System.out.println(multiplication[row]) System.out.println System.out System System.out multiplication[row] multiplication row String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int row_cout	=	sc.nextInt();
		int column_cout	=	sc.nextInt();

		int[][]	matrix			=	new int[row_cout][column_cout];
		int[]	vector			=	new int[column_cout];
		int[]	multiplication	=	new int[row_cout];

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		}

		for(int column = 0; column < column_cout; column++) {
			vector[column] = sc.nextInt();
		}
		sc.close();

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		}

		for(int row = 0; row < row_cout; row++) {
			System.out.println(multiplication[row]);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int row_cout	=	sc.nextInt();
		int column_cout	=	sc.nextInt();

		int[][]	matrix			=	new int[row_cout][column_cout];
		int[]	vector			=	new int[column_cout];
		int[]	multiplication	=	new int[row_cout];

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		}

		for(int column = 0; column < column_cout; column++) {
			vector[column] = sc.nextInt();
		}
		sc.close();

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		}

		for(int row = 0; row < row_cout; row++) {
			System.out.println(multiplication[row]);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int row_cout	=	sc.nextInt();
		int column_cout	=	sc.nextInt();

		int[][]	matrix			=	new int[row_cout][column_cout];
		int[]	vector			=	new int[column_cout];
		int[]	multiplication	=	new int[row_cout];

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				matrix[row][column] = sc.nextInt();
			}
		}

		for(int column = 0; column < column_cout; column++) {
			vector[column] = sc.nextInt();
		}
		sc.close();

		for(int row = 0; row < row_cout; row++) {
			for(int column = 0; column < column_cout; column++) {
				multiplication[row] = multiplication[row] + (matrix[row][column] * vector[column]);
			}
		}

		for(int row = 0; row < row_cout; row++) {
			System.out.println(multiplication[row]);
		}
	}
}
