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

public class Main{

	public static void main(String[] args) throws IOException
	{
		int i,j,n,m;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );

		String[] nm = br.readLine().split(" ");

		n = Integer.parseInt(nm[0]);//input n
		m = Integer.parseInt(nm[1]);//input m

		int[][] matrix = new int[n][m];
		int[] vector = new int[m];
		int[] out = new int[n];

		for(i=0; i<n; i++)//get matrix
		{
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		}

		for(i=0; i<m; i++)//get Vmatrix
		{
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		}

		for(i=0; i<n; i++)//calc
		{
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		}

/*++++++++++++++++++++++++++++++++++++*/
/*		for(i=0; i<n; i++)
		{
			for(j=0; j<m; j++)
			{
				System.out.print(matrix[i][j]);
			}

			System.out.println();
		}

		for(i=0; i<m; i++)
		{
			System.out.println(vector[i]);
		}*/

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

	public static void main(String[] args) throws IOException
	{
		int i,j,n,m;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );

		String[] nm = br.readLine().split(" ");

		n = Integer.parseInt(nm[0]);//input n
		m = Integer.parseInt(nm[1]);//input m

		int[][] matrix = new int[n][m];
		int[] vector = new int[m];
		int[] out = new int[n];

		for(i=0; i<n; i++)//get matrix
		{
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		}

		for(i=0; i<m; i++)//get Vmatrix
		{
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		}

		for(i=0; i<n; i++)//calc
		{
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		}

/*++++++++++++++++++++++++++++++++++++*/
/*		for(i=0; i<n; i++)
		{
			for(j=0; j<m; j++)
			{
				System.out.print(matrix[i][j]);
			}

			System.out.println();
		}

		for(i=0; i<m; i++)
		{
			System.out.println(vector[i]);
		}*/

	}
} Main public static void main(String[] args) throws IOException
	{
		int i,j,n,m;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );

		String[] nm = br.readLine().split(" ");

		n = Integer.parseInt(nm[0]);//input n
		m = Integer.parseInt(nm[1]);//input m

		int[][] matrix = new int[n][m];
		int[] vector = new int[m];
		int[] out = new int[n];

		for(i=0; i<n; i++)//get matrix
		{
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		}

		for(i=0; i<m; i++)//get Vmatrix
		{
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		}

		for(i=0; i<n; i++)//calc
		{
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		}

/*++++++++++++++++++++++++++++++++++++*/
/*		for(i=0; i<n; i++)
		{
			for(j=0; j<m; j++)
			{
				System.out.print(matrix[i][j]);
			}

			System.out.println();
		}

		for(i=0; i<m; i++)
		{
			System.out.println(vector[i]);
		}*/

	} main {
		int i,j,n,m;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );

		String[] nm = br.readLine().split(" ");

		n = Integer.parseInt(nm[0]);//input n
		m = Integer.parseInt(nm[1]);//input m

		int[][] matrix = new int[n][m];
		int[] vector = new int[m];
		int[] out = new int[n];

		for(i=0; i<n; i++)//get matrix
		{
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		}

		for(i=0; i<m; i++)//get Vmatrix
		{
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		}

		for(i=0; i<n; i++)//calc
		{
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		}

/*++++++++++++++++++++++++++++++++++++*/
/*		for(i=0; i<n; i++)
		{
			for(j=0; j<m; j++)
			{
				System.out.print(matrix[i][j]);
			}

			System.out.println();
		}

		for(i=0; i<m; i++)
		{
			System.out.println(vector[i]);
		}*/

	} int i i j j n n m; m BufferedReader br = new BufferedReader(new InputStreamReader(System.in) ); br new BufferedReader(new InputStreamReader(System.in) ) String[] nm = br.readLine().split(" "); nm br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " n = Integer.parseInt(nm[0]) n Integer.parseInt(nm[0]) Integer.parseInt Integer nm[0] nm 0 m = Integer.parseInt(nm[1]) m Integer.parseInt(nm[1]) Integer.parseInt Integer nm[1] nm 1 int[][] matrix = new int[n][m]; matrix new int[n][m] n m int[] vector = new int[m]; vector new int[m] m int[] out = new int[n]; out new int[n] n for(i=0; i<n; i++)//get matrix
		{
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		} i=0; i=0 i 0 i<n i n i++ i++ i {
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		} {
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		} String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			} j=0; j=0 j 0 j<m j m j++ j++ j {
				matrix[i][j] = Integer.parseInt(str[j]);
			} {
				matrix[i][j] = Integer.parseInt(str[j]);
			} matrix[i][j] = Integer.parseInt(str[j]) matrix[i][j] matrix[i] matrix i j Integer.parseInt(str[j]) Integer.parseInt Integer str[j] str j for(i=0; i<m; i++)//get Vmatrix
		{
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		} i=0; i=0 i 0 i<m i m i++ i++ i {
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		} {
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		} String str = br.readLine(); str br.readLine() br.readLine br vector[i] = Integer.parseInt(str) vector[i] vector i Integer.parseInt(str) Integer.parseInt Integer str for(i=0; i<n; i++)//calc
		{
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		} i=0; i=0 i 0 i<n i n i++ i++ i {
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		} {
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		} for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			} j=0; j=0 j 0 j<m j m j++ j++ j {
				out[i] = out[i] + matrix[i][j]*vector[j];
			} {
				out[i] = out[i] + matrix[i][j]*vector[j];
			} out[i] = out[i] + matrix[i][j]*vector[j] out[i] out i out[i] + matrix[i][j]*vector[j] out[i] out i matrix[i][j]*vector[j] matrix[i][j] matrix[i] matrix i j vector[j] vector j System.out.println(out[i]) System.out.println System.out System System.out out[i] out i String[] args args public class Main{

	public static void main(String[] args) throws IOException
	{
		int i,j,n,m;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );

		String[] nm = br.readLine().split(" ");

		n = Integer.parseInt(nm[0]);//input n
		m = Integer.parseInt(nm[1]);//input m

		int[][] matrix = new int[n][m];
		int[] vector = new int[m];
		int[] out = new int[n];

		for(i=0; i<n; i++)//get matrix
		{
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		}

		for(i=0; i<m; i++)//get Vmatrix
		{
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		}

		for(i=0; i<n; i++)//calc
		{
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		}

/*++++++++++++++++++++++++++++++++++++*/
/*		for(i=0; i<n; i++)
		{
			for(j=0; j<m; j++)
			{
				System.out.print(matrix[i][j]);
			}

			System.out.println();
		}

		for(i=0; i<m; i++)
		{
			System.out.println(vector[i]);
		}*/

	}
} public class Main{

	public static void main(String[] args) throws IOException
	{
		int i,j,n,m;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );

		String[] nm = br.readLine().split(" ");

		n = Integer.parseInt(nm[0]);//input n
		m = Integer.parseInt(nm[1]);//input m

		int[][] matrix = new int[n][m];
		int[] vector = new int[m];
		int[] out = new int[n];

		for(i=0; i<n; i++)//get matrix
		{
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		}

		for(i=0; i<m; i++)//get Vmatrix
		{
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		}

		for(i=0; i<n; i++)//calc
		{
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		}

/*++++++++++++++++++++++++++++++++++++*/
/*		for(i=0; i<n; i++)
		{
			for(j=0; j<m; j++)
			{
				System.out.print(matrix[i][j]);
			}

			System.out.println();
		}

		for(i=0; i<m; i++)
		{
			System.out.println(vector[i]);
		}*/

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

public class Main{

	public static void main(String[] args) throws IOException
	{
		int i,j,n,m;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );

		String[] nm = br.readLine().split(" ");

		n = Integer.parseInt(nm[0]);//input n
		m = Integer.parseInt(nm[1]);//input m

		int[][] matrix = new int[n][m];
		int[] vector = new int[m];
		int[] out = new int[n];

		for(i=0; i<n; i++)//get matrix
		{
			String[] str = br.readLine().split(" ");

			for(j=0; j<m; j++)
			{
				matrix[i][j] = Integer.parseInt(str[j]);
			}
		}

		for(i=0; i<m; i++)//get Vmatrix
		{
			String str = br.readLine();
			vector[i] = Integer.parseInt(str);
		}

		for(i=0; i<n; i++)//calc
		{
			for(j=0; j<m; j++)
			{
				out[i] = out[i] + matrix[i][j]*vector[j];
			}

			System.out.println(out[i]);
		}

/*++++++++++++++++++++++++++++++++++++*/
/*		for(i=0; i<n; i++)
		{
			for(j=0; j<m; j++)
			{
				System.out.print(matrix[i][j]);
			}

			System.out.println();
		}

		for(i=0; i<m; i++)
		{
			System.out.println(vector[i]);
		}*/

	}
}