
import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);
    static int n = sc.nextInt();
    static int m = sc.nextInt();
    static int nm[][] = new int[n][m];
    static int ab[] = new int[m];

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

    public static void main(String[] args) {
        for (int i = 0; i < n; i++){
            for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            }
        }
        for (int i = 0; i < m; i++){
            ab[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++){
            int result = 0;
            for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            }
            System.out.println(result);
        }
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc static int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc static int nm[][] = new int[n][m]; nm new int[n][m] n m static int ab[] = new int[m]; ab new int[m] m public static void main(String[] args) {
        for (int i = 0; i < n; i++){
            for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            }
        }
        for (int i = 0; i < m; i++){
            ab[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++){
            int result = 0;
            for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            }
            System.out.println(result);
        }
    } main {
        for (int i = 0; i < n; i++){
            for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            }
        }
        for (int i = 0; i < m; i++){
            ab[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++){
            int result = 0;
            for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            }
            System.out.println(result);
        }
    } for (int i = 0; i < n; i++){
            for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            }
        } {
            for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            }
        } for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                nm[i][j] = sc.nextInt();
            } {
                nm[i][j] = sc.nextInt();
            } nm[i][j] = sc.nextInt() nm[i][j] nm[i] nm i j sc.nextInt() sc.nextInt sc for (int i = 0; i < m; i++){
            ab[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            ab[i] = sc.nextInt();
        } {
            ab[i] = sc.nextInt();
        } ab[i] = sc.nextInt() ab[i] ab i sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++){
            int result = 0;
            for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            }
            System.out.println(result);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int result = 0;
            for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            }
            System.out.println(result);
        } {
            int result = 0;
            for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            }
            System.out.println(result);
        } int result = 0; result 0 for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            } int j = 0; int j = 0; j 0 j < m j m j++ j++ j {
                 result += nm[i][j] * ab[j];
            } {
                 result += nm[i][j] * ab[j];
            } result += nm[i][j] * ab[j] result nm[i][j] * ab[j] nm[i][j] nm[i] nm i j ab[j] ab j System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    static Scanner sc = new Scanner(System.in);
    static int n = sc.nextInt();
    static int m = sc.nextInt();
    static int nm[][] = new int[n][m];
    static int ab[] = new int[m];

    public static void main(String[] args) {
        for (int i = 0; i < n; i++){
            for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            }
        }
        for (int i = 0; i < m; i++){
            ab[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++){
            int result = 0;
            for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            }
            System.out.println(result);
        }
    }
} public class Main {
    static Scanner sc = new Scanner(System.in);
    static int n = sc.nextInt();
    static int m = sc.nextInt();
    static int nm[][] = new int[n][m];
    static int ab[] = new int[m];

    public static void main(String[] args) {
        for (int i = 0; i < n; i++){
            for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            }
        }
        for (int i = 0; i < m; i++){
            ab[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++){
            int result = 0;
            for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            }
            System.out.println(result);
        }
    }
} Main

import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);
    static int n = sc.nextInt();
    static int m = sc.nextInt();
    static int nm[][] = new int[n][m];
    static int ab[] = new int[m];

    public static void main(String[] args) {
        for (int i = 0; i < n; i++){
            for (int j = 0; j < m; j++){
                nm[i][j] = sc.nextInt();
            }
        }
        for (int i = 0; i < m; i++){
            ab[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++){
            int result = 0;
            for (int j = 0; j < m; j++){
                 result += nm[i][j] * ab[j];
            }
            System.out.println(result);
        }
    }
}

