Skyland
n
n
Somewhere in the sky, KM kingdom built floating islands by their highly developed technology. The islands are numbered from 1 to .
H
i
h_i
b_ih_i
|h_i−h_j|c_{i,j}
i
j
The king of the country, Kita_masa, can choose any non-negative real number as the altitude for each island, as long as the sum of the altitudes is greater than or equals to . For floating the island to the altitude , it costs . Besides, it costs for each pair of islands and since there are communications between these islands.
Recently, energy prices are rising, so the king, Kita_masa, wants to minimize the sum of the costs. The king ordered you, a court programmer, to write a program that finds the altitudes of the floating islands that minimize the cost.
Input
n
1 ≤ n ≤ 100
H
0 ≤ H ≤ 1000
n
b_1
b_2
b_n
0 ≤ b_i ≤ 1000
n
n
c_{i,j}
0 ≤ c_{i,j} ≤ 1000
c_{i,i}=0
c_{i,j}=c_{j,i}
The input contains several test cases. Each test case starts with a line containing two integers () and (), separated by a single space. The next line contains integers , ,..., (). Each of the next lines contains integers (). You may assume and .
The last test case is followed by a line containing two zeros.
Output
(1−
10^{-9}
) H
10^{-9}
For each test case, print its case number. Then print a line containing a space-separated list of the altitudes of the islands that minimizes the sum of the costs. If there are several possible solutions, print any of them. Your answer will be accepted if the altitude of each island is non-negative, sum of the altitudes is greater than , and the cost calculated from your answer has an absolute or relative error less than from the optimal solution.
Follow the format of the sample output.