Edward is a worker for Aluminum Cyclic Machinery. His work is to control the mechanical arms to cut out some parts of the mould material. Here is a brief introduction to his work.
Suppose the operation panel for him is a Euclidean plane with the coordinate system. Originally the mould is a disc whose centre coordinates is and of radius
. Edward controls nn different mechanical arms to cut out and erase those all of the mould within their affected areas. The affected area of the
-th mechanical arm is a circle whose centre coordinate is
and of radius
. In order to obtain the highly developed product, it is guaranteed that the affected areas of any two mechanical arms share no intersection and no one has an affected area containing the whole original mould.
The input contains several test cases, and the first line contains a positive integer
indicating the number of test cases which is up to
.
For each test case, the first line contains two integers
and
, where
and
.
The following
lines describe all mechanical arms controlled by Edward, the
-th of which contains three integers
and
describing the affected area of the
-th mechanical arm, where
and
.
For each test case, output a line containing "Case #x: y" (without quotes), where x is the test case number starting from, and y is the diameter of the remaining area with an absolute or relative error of at most
. Precisely speaking, assume that your answer is
and and the jury's answer is
, your answer will be considered correct if
, where
means the maximum of
and
and
means the absolute value of
.