import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
 
        int matrix[][] = new int[n][m];
        for(int i=0; i<=n-1; i++){
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        }
 
        int vector[] = new int [m];
        for(int k=0; k<=m-1; k++){
            vector[k] = sc.nextInt();
        }
 
        for(int i=0; i<=n-1; i++){
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        }
    }
}
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
 
        int matrix[][] = new int[n][m];
        for(int i=0; i<=n-1; i++){
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        }
 
        int vector[] = new int [m];
        for(int k=0; k<=m-1; k++){
            vector[k] = sc.nextInt();
        }
 
        for(int i=0; i<=n-1; i++){
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
 
        int matrix[][] = new int[n][m];
        for(int i=0; i<=n-1; i++){
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        }
 
        int vector[] = new int [m];
        for(int k=0; k<=m-1; k++){
            vector[k] = sc.nextInt();
        }
 
        for(int i=0; i<=n-1; i++){
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
 
        int matrix[][] = new int[n][m];
        for(int i=0; i<=n-1; i++){
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        }
 
        int vector[] = new int [m];
        for(int k=0; k<=m-1; k++){
            vector[k] = sc.nextInt();
        }
 
        for(int i=0; i<=n-1; i++){
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int matrix[][] = new int[n][m]; matrix new int[n][m] n m for(int i=0; i<=n-1; i++){
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        } int i=0; int i=0; i 0 i<=n-1 i n-1 n 1 i++ i++ i {
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        } {
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        } for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            } int j=0; int j=0; j 0 j<=m-1 j m-1 m 1 j++ j++ j {
                matrix[i][j] = sc.nextInt();
            } {
                matrix[i][j] = sc.nextInt();
            } matrix[i][j] = sc.nextInt() matrix[i][j] matrix[i] matrix i j sc.nextInt() sc.nextInt sc int vector[] = new int [m]; vector new int [m] m for(int k=0; k<=m-1; k++){
            vector[k] = sc.nextInt();
        } int k=0; int k=0; k 0 k<=m-1 k m-1 m 1 k++ k++ k {
            vector[k] = sc.nextInt();
        } {
            vector[k] = sc.nextInt();
        } vector[k] = sc.nextInt() vector[k] vector k sc.nextInt() sc.nextInt sc for(int i=0; i<=n-1; i++){
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        } int i=0; int i=0; i 0 i<=n-1 i n-1 n 1 i++ i++ i {
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        } {
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        } int ans = 0; ans 0 for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            } int j=0; int j=0; j 0 j<=m-1 j m-1 m 1 j++ j++ j {
                ans += matrix[i][j] * vector[j];
            } {
                ans += matrix[i][j] * vector[j];
            } ans += matrix[i][j] * vector[j] ans matrix[i][j] * vector[j] matrix[i][j] matrix[i] matrix i j vector[j] vector j System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
 
        int matrix[][] = new int[n][m];
        for(int i=0; i<=n-1; i++){
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        }
 
        int vector[] = new int [m];
        for(int k=0; k<=m-1; k++){
            vector[k] = sc.nextInt();
        }
 
        for(int i=0; i<=n-1; i++){
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
 
        int matrix[][] = new int[n][m];
        for(int i=0; i<=n-1; i++){
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        }
 
        int vector[] = new int [m];
        for(int k=0; k<=m-1; k++){
            vector[k] = sc.nextInt();
        }
 
        for(int i=0; i<=n-1; i++){
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
 
        int matrix[][] = new int[n][m];
        for(int i=0; i<=n-1; i++){
            for(int j=0; j<=m-1; j++){
                matrix[i][j] = sc.nextInt();
            }
        }
 
        int vector[] = new int [m];
        for(int k=0; k<=m-1; k++){
            vector[k] = sc.nextInt();
        }
 
        for(int i=0; i<=n-1; i++){
            int ans = 0;
            for(int j=0; j<=m-1; j++){
                ans += matrix[i][j] * vector[j];
            }
            System.out.println(ans);
        }
    }
}

