import java.util.Scanner;
public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int[] s = new int[111];
		int[][] a = new int[111][111];
		int[] b = new int[111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			b[i] = input.nextInt();
		for (int i = 0; i < n; i++)
			for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k];
		for(int i = 0; i < n; i++)
			System.out.println(s[i]);
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int[] s = new int[111];
		int[][] a = new int[111][111];
		int[] b = new int[111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			b[i] = input.nextInt();
		for (int i = 0; i < n; i++)
			for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k];
		for(int i = 0; i < n; i++)
			System.out.println(s[i]);
	}
} Main public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int[] s = new int[111];
		int[][] a = new int[111][111];
		int[] b = new int[111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			b[i] = input.nextInt();
		for (int i = 0; i < n; i++)
			for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k];
		for(int i = 0; i < n; i++)
			System.out.println(s[i]);
	} main {
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int[] s = new int[111];
		int[][] a = new int[111][111];
		int[] b = new int[111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			b[i] = input.nextInt();
		for (int i = 0; i < n; i++)
			for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k];
		for(int i = 0; i < n; i++)
			System.out.println(s[i]);
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int n = input.nextInt(); n input.nextInt() input.nextInt input int m = input.nextInt(); m input.nextInt() input.nextInt input int[] s = new int[111]; s new int[111] 111 int[][] a = new int[111][111]; a new int[111][111] 111 111 int[] b = new int[111]; b new int[111] 111 for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt(); for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt(); int k = 0; int k = 0; k 0 k < m k m k++ k++ k a[i][k] = input.nextInt(); a[i][k] = input.nextInt() a[i][k] a[i] a i k input.nextInt() input.nextInt input for(int i = 0; i < m; i++)
			b[i] = input.nextInt(); int i = 0; int i = 0; i 0 i < m i m i++ i++ i b[i] = input.nextInt(); b[i] = input.nextInt() b[i] b i input.nextInt() input.nextInt input for (int i = 0; i < n; i++)
			for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k]; int i = 0; int i = 0; i 0 i < n i n i++ i++ i for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k]; for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k]; int k = 0; int k = 0; k 0 k < m k m k++ k++ k s[i] += a[i][k] * b[k]; s[i] += a[i][k] * b[k] s[i] s i a[i][k] * b[k] a[i][k] a[i] a i k b[k] b k for(int i = 0; i < n; i++)
			System.out.println(s[i]); int i = 0; int i = 0; i 0 i < n i n i++ i++ i System.out.println(s[i]); System.out.println(s[i]) System.out.println System.out System System.out s[i] s i String args[] args public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int[] s = new int[111];
		int[][] a = new int[111][111];
		int[] b = new int[111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			b[i] = input.nextInt();
		for (int i = 0; i < n; i++)
			for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k];
		for(int i = 0; i < n; i++)
			System.out.println(s[i]);
	}
} public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int[] s = new int[111];
		int[][] a = new int[111][111];
		int[] b = new int[111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			b[i] = input.nextInt();
		for (int i = 0; i < n; i++)
			for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k];
		for(int i = 0; i < n; i++)
			System.out.println(s[i]);
	}
} Main
import java.util.Scanner;
public class Main
{
	public static void main( String args[] )
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int m = input.nextInt();
		int[] s = new int[111];
		int[][] a = new int[111][111];
		int[] b = new int[111];
		for(int i = 0; i < n; i++)
			for(int k = 0; k < m; k++)
				a[i][k] = input.nextInt();
		for(int i = 0; i < m; i++)
			b[i] = input.nextInt();
		for (int i = 0; i < n; i++)
			for (int k = 0; k < m; k++)
			s[i] += a[i][k] * b[k];
		for(int i = 0; i < n; i++)
			System.out.println(s[i]);
	}
}