import java.util.Scanner;

class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int r = scan.nextInt();
        int col = scan.nextInt();

        int[][] a = new int[r][col];
        int[][] b = new int[col][1];
        int[][] c = new int[r][1];
        scan.nextLine();

        for (int i = 0; i < a.length;i++) {
            for(int j = 0;j < a[0].length;j++) {
                a[i][j] = scan.nextInt();
            }
            scan.nextLine();
        }
        for (int i = 0; i < b.length;i++) {
            b[i][0] = scan.nextInt();
            scan.nextLine();
        }
        for (int i = 0; i < a.length;i++) {
            int t = 0;
            for (int j = 0; j < a[0].length;j++) {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            }
        }
        for (int i = 0; i < c.length; i++) {
         System.out.println(c[i][0]);
        }
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int r = scan.nextInt();
        int col = scan.nextInt();

        int[][] a = new int[r][col];
        int[][] b = new int[col][1];
        int[][] c = new int[r][1];
        scan.nextLine();

        for (int i = 0; i < a.length;i++) {
            for(int j = 0;j < a[0].length;j++) {
                a[i][j] = scan.nextInt();
            }
            scan.nextLine();
        }
        for (int i = 0; i < b.length;i++) {
            b[i][0] = scan.nextInt();
            scan.nextLine();
        }
        for (int i = 0; i < a.length;i++) {
            int t = 0;
            for (int j = 0; j < a[0].length;j++) {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            }
        }
        for (int i = 0; i < c.length; i++) {
         System.out.println(c[i][0]);
        }
    }
} Main public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int r = scan.nextInt();
        int col = scan.nextInt();

        int[][] a = new int[r][col];
        int[][] b = new int[col][1];
        int[][] c = new int[r][1];
        scan.nextLine();

        for (int i = 0; i < a.length;i++) {
            for(int j = 0;j < a[0].length;j++) {
                a[i][j] = scan.nextInt();
            }
            scan.nextLine();
        }
        for (int i = 0; i < b.length;i++) {
            b[i][0] = scan.nextInt();
            scan.nextLine();
        }
        for (int i = 0; i < a.length;i++) {
            int t = 0;
            for (int j = 0; j < a[0].length;j++) {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            }
        }
        for (int i = 0; i < c.length; i++) {
         System.out.println(c[i][0]);
        }
    } main {
        Scanner scan = new Scanner(System.in);

        int r = scan.nextInt();
        int col = scan.nextInt();

        int[][] a = new int[r][col];
        int[][] b = new int[col][1];
        int[][] c = new int[r][1];
        scan.nextLine();

        for (int i = 0; i < a.length;i++) {
            for(int j = 0;j < a[0].length;j++) {
                a[i][j] = scan.nextInt();
            }
            scan.nextLine();
        }
        for (int i = 0; i < b.length;i++) {
            b[i][0] = scan.nextInt();
            scan.nextLine();
        }
        for (int i = 0; i < a.length;i++) {
            int t = 0;
            for (int j = 0; j < a[0].length;j++) {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            }
        }
        for (int i = 0; i < c.length; i++) {
         System.out.println(c[i][0]);
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int r = scan.nextInt(); r scan.nextInt() scan.nextInt scan int col = scan.nextInt(); col scan.nextInt() scan.nextInt scan int[][] a = new int[r][col]; a new int[r][col] r col int[][] b = new int[col][1]; b new int[col][1] col 1 int[][] c = new int[r][1]; c new int[r][1] r 1 scan.nextLine() scan.nextLine scan for (int i = 0; i < a.length;i++) {
            for(int j = 0;j < a[0].length;j++) {
                a[i][j] = scan.nextInt();
            }
            scan.nextLine();
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            for(int j = 0;j < a[0].length;j++) {
                a[i][j] = scan.nextInt();
            }
            scan.nextLine();
        } {
            for(int j = 0;j < a[0].length;j++) {
                a[i][j] = scan.nextInt();
            }
            scan.nextLine();
        } for(int j = 0;j < a[0].length;j++) {
                a[i][j] = scan.nextInt();
            } int j = 0; int j = 0; j 0 j < a[0].length j a[0].length a[0] a 0 a[0].length j++ j++ j {
                a[i][j] = scan.nextInt();
            } {
                a[i][j] = scan.nextInt();
            } a[i][j] = scan.nextInt() a[i][j] a[i] a i j scan.nextInt() scan.nextInt scan scan.nextLine() scan.nextLine scan for (int i = 0; i < b.length;i++) {
            b[i][0] = scan.nextInt();
            scan.nextLine();
        } int i = 0; int i = 0; i 0 i < b.length i b.length b b.length i++ i++ i {
            b[i][0] = scan.nextInt();
            scan.nextLine();
        } {
            b[i][0] = scan.nextInt();
            scan.nextLine();
        } b[i][0] = scan.nextInt() b[i][0] b[i] b i 0 scan.nextInt() scan.nextInt scan scan.nextLine() scan.nextLine scan for (int i = 0; i < a.length;i++) {
            int t = 0;
            for (int j = 0; j < a[0].length;j++) {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            }
        } int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
            int t = 0;
            for (int j = 0; j < a[0].length;j++) {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            }
        } {
            int t = 0;
            for (int j = 0; j < a[0].length;j++) {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            }
        } int t = 0; t 0 for (int j = 0; j < a[0].length;j++) {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            } int j = 0; int j = 0; j 0 j < a[0].length j a[0].length a[0] a 0 a[0].length j++ j++ j {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            } {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            } t += a[i][j] * b[j][0] t a[i][j] * b[j][0] a[i][j] a[i] a i j b[j][0] b[j] b j 0 c[i][0] = t c[i][0] c[i] c i 0 t for (int i = 0; i < c.length; i++) {
         System.out.println(c[i][0]);
        } int i = 0; int i = 0; i 0 i < c.length i c.length c c.length i++ i++ i {
         System.out.println(c[i][0]);
        } {
         System.out.println(c[i][0]);
        } System.out.println(c[i][0]) System.out.println System.out System System.out c[i][0] c[i] c i 0 String args[] args
import java.util.Scanner;

class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int r = scan.nextInt();
        int col = scan.nextInt();

        int[][] a = new int[r][col];
        int[][] b = new int[col][1];
        int[][] c = new int[r][1];
        scan.nextLine();

        for (int i = 0; i < a.length;i++) {
            for(int j = 0;j < a[0].length;j++) {
                a[i][j] = scan.nextInt();
            }
            scan.nextLine();
        }
        for (int i = 0; i < b.length;i++) {
            b[i][0] = scan.nextInt();
            scan.nextLine();
        }
        for (int i = 0; i < a.length;i++) {
            int t = 0;
            for (int j = 0; j < a[0].length;j++) {
                t += a[i][j] * b[j][0];
                c[i][0] = t;
            }
        }
        for (int i = 0; i < c.length; i++) {
         System.out.println(c[i][0]);
        }
    }
}