import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int numRow = sc.nextInt();
        int numCol = sc.nextInt();
        int[][] mat = new int[numRow][numCol];
        int[] vecIn = new int[numCol];
        int[] vecOut = new int[numRow];
        int i, j;
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                mat[i][j] = sc.nextInt();
            }
        }
        for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                vecOut[i] += mat[i][j] * vecIn[j];
            }
            System.out.println(vecOut[i]);
        }
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int numRow = sc.nextInt();
        int numCol = sc.nextInt();
        int[][] mat = new int[numRow][numCol];
        int[] vecIn = new int[numCol];
        int[] vecOut = new int[numRow];
        int i, j;
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                mat[i][j] = sc.nextInt();
            }
        }
        for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                vecOut[i] += mat[i][j] * vecIn[j];
            }
            System.out.println(vecOut[i]);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int numRow = sc.nextInt();
        int numCol = sc.nextInt();
        int[][] mat = new int[numRow][numCol];
        int[] vecIn = new int[numCol];
        int[] vecOut = new int[numRow];
        int i, j;
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                mat[i][j] = sc.nextInt();
            }
        }
        for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                vecOut[i] += mat[i][j] * vecIn[j];
            }
            System.out.println(vecOut[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int numRow = sc.nextInt();
        int numCol = sc.nextInt();
        int[][] mat = new int[numRow][numCol];
        int[] vecIn = new int[numCol];
        int[] vecOut = new int[numRow];
        int i, j;
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                mat[i][j] = sc.nextInt();
            }
        }
        for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                vecOut[i] += mat[i][j] * vecIn[j];
            }
            System.out.println(vecOut[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int numRow = sc.nextInt(); numRow sc.nextInt() sc.nextInt sc int numCol = sc.nextInt(); numCol sc.nextInt() sc.nextInt sc int[][] mat = new int[numRow][numCol]; mat new int[numRow][numCol] numRow numCol int[] vecIn = new int[numCol]; vecIn new int[numCol] numCol int[] vecOut = new int[numRow]; vecOut new int[numRow] numRow int i i j; j for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                mat[i][j] = sc.nextInt();
            }
        } i = 0; i = 0 i 0 i < numRow i numRow i++ i++ i {
            for (j = 0; j < numCol; j++) {
                mat[i][j] = sc.nextInt();
            }
        } {
            for (j = 0; j < numCol; j++) {
                mat[i][j] = sc.nextInt();
            }
        } for (j = 0; j < numCol; j++) {
                mat[i][j] = sc.nextInt();
            } j = 0; j = 0 j 0 j < numCol j numCol j++ j++ j {
                mat[i][j] = sc.nextInt();
            } {
                mat[i][j] = sc.nextInt();
            } mat[i][j] = sc.nextInt() mat[i][j] mat[i] mat i j sc.nextInt() sc.nextInt sc for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt(); j = 0; j = 0 j 0 j < numCol j numCol j++ j++ j vecIn[j] = sc.nextInt(); vecIn[j] = sc.nextInt() vecIn[j] vecIn j sc.nextInt() sc.nextInt sc for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                vecOut[i] += mat[i][j] * vecIn[j];
            }
            System.out.println(vecOut[i]);
        } i = 0; i = 0 i 0 i < numRow i numRow i++ i++ i {
            for (j = 0; j < numCol; j++) {
                vecOut[i] += mat[i][j] * vecIn[j];
            }
            System.out.println(vecOut[i]);
        } {
            for (j = 0; j < numCol; j++) {
                vecOut[i] += mat[i][j] * vecIn[j];
            }
            System.out.println(vecOut[i]);
        } for (j = 0; j < numCol; j++) {
                vecOut[i] += mat[i][j] * vecIn[j];
            } j = 0; j = 0 j 0 j < numCol j numCol j++ j++ j {
                vecOut[i] += mat[i][j] * vecIn[j];
            } {
                vecOut[i] += mat[i][j] * vecIn[j];
            } vecOut[i] += mat[i][j] * vecIn[j] vecOut[i] vecOut i mat[i][j] * vecIn[j] mat[i][j] mat[i] mat i j vecIn[j] vecIn j System.out.println(vecOut[i]) System.out.println System.out System System.out vecOut[i] vecOut i String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int numRow = sc.nextInt();
        int numCol = sc.nextInt();
        int[][] mat = new int[numRow][numCol];
        int[] vecIn = new int[numCol];
        int[] vecOut = new int[numRow];
        int i, j;
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                mat[i][j] = sc.nextInt();
            }
        }
        for (j = 0; j < numCol; j++) vecIn[j] = sc.nextInt();
        for (i = 0; i < numRow; i++) {
            for (j = 0; j < numCol; j++) {
                vecOut[i] += mat[i][j] * vecIn[j];
            }
            System.out.println(vecOut[i]);
        }
    }
}
