Ski jumping is one of the most popular winter sport competitions. In the chase of records, ski jumping hills become larger and larger. To ensure the safety of the competitors, landing speed and angle must not exceed critical margins defined by the FIS. Today, it's your task to assess these values for a newly constructed ski jumping arena shown in the figure.

Instead of doing measurements in the field, you can use a little math to solve your problem, since the hill has the following shape:

where is the position on the -axis with its origin in the beginning of the hill. is the height and is the width of the hill; is the maximum starting height of the ski-jump and is the height difference between the end of the (ski-jump) approach and the top of the hill. Assuming that friction plays no important role and since the critical margins are defined for a flight without any influence of wind, you may utilize the following flight curve:

where v_0 is the speed gained in the approach. You can obtain this value from the law of energy conservation. Potential and kinetic energy are defined as follows:

In all equations, is the gravitational constant (g \approx 9.81 ms^{-2}).
Hints:


The inner product of two vectors is defined as:

Input starts with the number of test cases on a single line (0 < t < 160000).
Every test case consists of a single line containing four positive integers , , , and as defined in the problem statement (0 < j, p, H, L \le 500). The unit of all values is meter.
For every test case, print one line containing
the landing position on the -axis,
the landing speed |v_l| of the jumper (in meters per second), and
the speed-angle (in degree) with respect to the hill (see the figure).
The values must be separated by a single blank. An absolute or relative error of 10^{-4} is tolerated.
Example 1