import java.util.*;
import java.lang.*;
import java.io.*;
class Brovko
{
{
Scanner in
= new Scanner
(System.
in); //Ввод размерности матрицы; int n;
n=in.nextInt();
int[][] A= new int[n][n];
int[] B= new int[n];
int[] rezult= new int[n];
for(int i=0; i<n; i++)
{
for(int j=0; j<n; j++)
{
A[i][j]=in.nextInt(); //Ввод самой матрицы;
}
}
for(int j=0; j<n; j++)
{
B[j]=in.nextInt(); //Ввод вектора
}
for(int i=0; i<n; i++)
{
rezult[i]=0;
for(int j=0; j<n; j++)
{
rezult[i]+=A[i][j]*B[j]; //Последовательный алгоритм умножения матрицы на вектор;
}
}
for(int i=0; i<n; i++)
{
System.
out.
format("%d",rezult
[i
]); //Вывод результирующего вектора; }
}
}
CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKY2xhc3MgQnJvdmtvCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CQkvL9CS0LLQvtC0INGA0LDQt9C80LXRgNC90L7RgdGC0Lgg0LzQsNGC0YDQuNGG0Ys7CglpbnQgbjsKCW49aW4ubmV4dEludCgpOwoJaW50W11bXSBBPSBuZXcgaW50W25dW25dOwoJaW50W10gQj0gbmV3IGludFtuXTsKCWludFtdIHJlenVsdD0gbmV3IGludFtuXTsKCWZvcihpbnQgaT0wOyBpPG47IGkrKykKCXsKCQlmb3IoaW50IGo9MDsgajxuOyBqKyspCgkJewoJCQlBW2ldW2pdPWluLm5leHRJbnQoKTsJCQkJCQkvL9CS0LLQvtC0INGB0LDQvNC+0Lkg0LzQsNGC0YDQuNGG0Ys7CgkJfQoJfQoJZm9yKGludCBqPTA7IGo8bjsgaisrKQoJewoJCUJbal09aW4ubmV4dEludCgpOwkJCQkJCQkJ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