import java.util.Scanner;
class Line{
    protected int[][] liner;
    protected int[] beq;
    protected int sum;
    public Line(int x,int y){
	liner=new int[x][];
	for(int i=0;i<x;i++) liner[i]=new int[y];
	beq=new int[y];
    }
    public void calc(int x,int y){
	for(int i=0;i<x;i++){
	    sum=0;
	    for(int j=0;j<y;j++){
		sum+=liner[i][j]*beq[j];
	    }
	    System.out.println(sum);
	}
    }
}

class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	int x=sc.nextInt();
	int y=sc.nextInt();
	Line line=new Line(x,y);
	for(int i=0;i<x;i++){
	    for(int j=0;j<y;j++){
		line.liner[i][j]=sc.nextInt();
	    }
	}
	for(int i=0;i<y;i++) line.beq[i]=sc.nextInt();
	line.calc(x,y);
    }
} import java.util.Scanner; Scanner java.util class Line{
    protected int[][] liner;
    protected int[] beq;
    protected int sum;
    public Line(int x,int y){
	liner=new int[x][];
	for(int i=0;i<x;i++) liner[i]=new int[y];
	beq=new int[y];
    }
    public void calc(int x,int y){
	for(int i=0;i<x;i++){
	    sum=0;
	    for(int j=0;j<y;j++){
		sum+=liner[i][j]*beq[j];
	    }
	    System.out.println(sum);
	}
    }
} Line protected int[][] liner; liner protected int[] beq; beq protected int sum; sum public Line(int x,int y){
	liner=new int[x][];
	for(int i=0;i<x;i++) liner[i]=new int[y];
	beq=new int[y];
    } Line {
	liner=new int[x][];
	for(int i=0;i<x;i++) liner[i]=new int[y];
	beq=new int[y];
    } liner=new int[x][] liner new int[x][] x for(int i=0;i<x;i++) liner[i]=new int[y]; int i=0; int i=0; i 0 i<x i x i++ i++ i liner[i]=new int[y]; liner[i]=new int[y] liner[i] liner i new int[y] y beq=new int[y] beq new int[y] y int x x int y y public void calc(int x,int y){
	for(int i=0;i<x;i++){
	    sum=0;
	    for(int j=0;j<y;j++){
		sum+=liner[i][j]*beq[j];
	    }
	    System.out.println(sum);
	}
    } calc {
	for(int i=0;i<x;i++){
	    sum=0;
	    for(int j=0;j<y;j++){
		sum+=liner[i][j]*beq[j];
	    }
	    System.out.println(sum);
	}
    } for(int i=0;i<x;i++){
	    sum=0;
	    for(int j=0;j<y;j++){
		sum+=liner[i][j]*beq[j];
	    }
	    System.out.println(sum);
	} int i=0; int i=0; i 0 i<x i x i++ i++ i {
	    sum=0;
	    for(int j=0;j<y;j++){
		sum+=liner[i][j]*beq[j];
	    }
	    System.out.println(sum);
	} {
	    sum=0;
	    for(int j=0;j<y;j++){
		sum+=liner[i][j]*beq[j];
	    }
	    System.out.println(sum);
	} sum=0 sum 0 for(int j=0;j<y;j++){
		sum+=liner[i][j]*beq[j];
	    } int j=0; int j=0; j 0 j<y j y j++ j++ j {
		sum+=liner[i][j]*beq[j];
	    } {
		sum+=liner[i][j]*beq[j];
	    } sum+=liner[i][j]*beq[j] sum liner[i][j]*beq[j] liner[i][j] liner[i] liner i j beq[j] beq j System.out.println(sum) System.out.println System.out System System.out sum int x x int y y class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	int x=sc.nextInt();
	int y=sc.nextInt();
	Line line=new Line(x,y);
	for(int i=0;i<x;i++){
	    for(int j=0;j<y;j++){
		line.liner[i][j]=sc.nextInt();
	    }
	}
	for(int i=0;i<y;i++) line.beq[i]=sc.nextInt();
	line.calc(x,y);
    }
} Main public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	int x=sc.nextInt();
	int y=sc.nextInt();
	Line line=new Line(x,y);
	for(int i=0;i<x;i++){
	    for(int j=0;j<y;j++){
		line.liner[i][j]=sc.nextInt();
	    }
	}
	for(int i=0;i<y;i++) line.beq[i]=sc.nextInt();
	line.calc(x,y);
    } main {
	final Scanner sc=new Scanner(System.in);
	int x=sc.nextInt();
	int y=sc.nextInt();
	Line line=new Line(x,y);
	for(int i=0;i<x;i++){
	    for(int j=0;j<y;j++){
		line.liner[i][j]=sc.nextInt();
	    }
	}
	for(int i=0;i<y;i++) line.beq[i]=sc.nextInt();
	line.calc(x,y);
    } final Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int x=sc.nextInt(); x sc.nextInt() sc.nextInt sc int y=sc.nextInt(); y sc.nextInt() sc.nextInt sc Line line=new Line(x,y); line new Line(x,y) for(int i=0;i<x;i++){
	    for(int j=0;j<y;j++){
		line.liner[i][j]=sc.nextInt();
	    }
	} int i=0; int i=0; i 0 i<x i x i++ i++ i {
	    for(int j=0;j<y;j++){
		line.liner[i][j]=sc.nextInt();
	    }
	} {
	    for(int j=0;j<y;j++){
		line.liner[i][j]=sc.nextInt();
	    }
	} for(int j=0;j<y;j++){
		line.liner[i][j]=sc.nextInt();
	    } int j=0; int j=0; j 0 j<y j y j++ j++ j {
		line.liner[i][j]=sc.nextInt();
	    } {
		line.liner[i][j]=sc.nextInt();
	    } line.liner[i][j]=sc.nextInt() line.liner[i][j] line.liner[i] line.liner line line.liner i j sc.nextInt() sc.nextInt sc for(int i=0;i<y;i++) line.beq[i]=sc.nextInt(); int i=0; int i=0; i 0 i<y i y i++ i++ i line.beq[i]=sc.nextInt(); line.beq[i]=sc.nextInt() line.beq[i] line.beq line line.beq i sc.nextInt() sc.nextInt sc line.calc(x,y) line.calc line x y String[] args args
import java.util.Scanner;
class Line{
    protected int[][] liner;
    protected int[] beq;
    protected int sum;
    public Line(int x,int y){
	liner=new int[x][];
	for(int i=0;i<x;i++) liner[i]=new int[y];
	beq=new int[y];
    }
    public void calc(int x,int y){
	for(int i=0;i<x;i++){
	    sum=0;
	    for(int j=0;j<y;j++){
		sum+=liner[i][j]*beq[j];
	    }
	    System.out.println(sum);
	}
    }
}

class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	int x=sc.nextInt();
	int y=sc.nextInt();
	Line line=new Line(x,y);
	for(int i=0;i<x;i++){
	    for(int j=0;j<y;j++){
		line.liner[i][j]=sc.nextInt();
	    }
	}
	for(int i=0;i<y;i++) line.beq[i]=sc.nextInt();
	line.calc(x,y);
    }
}