You want the total illumination intensity at an objective point as high as possible. For this purpose, some of the balloons obstructing lights can be removed. Because of the removal costs, however, there is a certain limit on the number of balloons to be removed. Thus, you would like to remove an appropriate set of balloons so as to maximize the illumination intensity at the objective point.
The following figure illustrates the configuration speci ed in the first dataset of the sample input given below. The figure shows the -plane, which is enough because, in this dataset, the -coordinates of all the light sources, balloon centers, and the objective point are zero. In the figure, light sources are shown as stars and balloons as circles. The objective point is at the origin, and you may remove up to balloons. In this case, the dashed circles in the figure correspond to the balloons to be removed.

Figure 1: First dataset of the sample input.
The input is a sequence of datasets. Each dataset is formatted as follows.
S_{1x} S_{1y} S_{1z} S_{1r}
S_{Nx} S_{Ny} S_{Nz} S_{Nr}
T_{1x} T_{1y} T_{1z} T_{1b}
T_{Mx} T_{My} T_{Mz} T_{Mb}
E_x E_y E_z
The first line of a dataset contains three positive integers, , and , separated by a single space. means the number of balloons that does not exceed . means the number of light sources that does not exceed . means the number of balloons that may be removed, which does not exceed .
Each of the lines following the first line contains four integers separated by a single space. (S_{ix}, S_{iy}, S_{iz}) means the center position of the -th balloon and S_{ir} means its radius.
Each of the following lines contains four integers separated by a single space. (T_{jx}, T_{jy}, T_{jz}) means the position of the -th light source and T_{jb} means its brightness.
The last line of a dataset contains three integers separated by a single space. (E_x, E_y, E_z) means the position of the objective point.
S_{ix}, S_{iy}, S_{iz}, T_{jx}, T_{jy}, T_{jz}, E_x, E_y and E_z are greater than , and less than . S_{ir} is greater than , and less than . T_{jb} is greater than , and less than .
At the objective point, the intensity of the light from the -th light source is in inverse proportion to the square of the distance, namely

if there is no balloon interrupting the light. The total illumination intensity is the sum of the above.
You may assume the following.
The distance between the objective point and any light source is not less than .
For every and , even if S_{ir} changes by (|\epsilon| < 0.01), whether the -th balloon hides the -th light or not does not change.
The end of the input is indicated by a line of three zeros.
For each dataset, output a line containing a decimal fraction which means the highest possible illumination intensity at the objective point after removing balloons. The output should not contain an error greater than .
Example 1