The Global Positioning System (GPS) is funded by and controlled by the U. S. Department of Defense (DOD). While there are many thousands of civil users of GPS world-wide, the system was designed for and is operated by the U. S. military. GPS provides specially coded satellite signals that can be processed in a GPS receiver, enabling the receiver to compute position, velocity and time. Four GPS satellite signals are used to compute its positions in three dimensions and the time offset in the receiver clock.

The Association of Computerized Metrology (ACM), has recently decided to design a simplified version of positioning system, namely the Planar Positioning System (PPS). The principle of the PPS system resembles that of the GPS system except that it depends on ground-based stations rather than satellites. And since the problem has been reduced to 2-dimensional space, it can be infered that signals from as few as 3 stations would be sufficient to locate an arbitrary moving object. Here after, you may assume that the ground is an ideal plane and that the moving objects as well as all stations are located on this plane.
Now the ACM has hired you, a talented programmer, to contribute a key module to this positioning system. The module should compute the position of a moving object, based on 3 station's location information and their distances between the moving object.

Input consists of multiple test cases. Each test case contains 3 lines. Each line contains three real numbers in the format <xi yi di>; numbers are separated by a single space. xi and yi are the x-, y-coordinate of the ith station respectively, and di is the distance between the ith station and the moving object to be located.

Ouput a line containing its x-, y-coordinate, if the location of the moving object can be uniquely determined based on the given information. Numbers should be separated by single space and be rounded to 1 digits after the decimal point. Otherwise output the phrase "-1 -1" on a line by itself.

Sample Input

5.000000 1.000000 1.000000
3.000000 0.000000 1.414214
3.000000 1.000000 1.000000
-1.000000 0.000000 1.000000
1.000000 0.000000 1.000000
0.000000 1.000000 1.000000
-1.000000 0.000000 1.000000
2.000000 0.000000 1.000000
0.000000 1.000000 1.000000
-1.000000 0.000000 0.000000
-1.000000 -3.000000 3.000000
0.000000 1.000000 1.414214

Sample Output

4.0 1.0
0.0 0.0
-1 -1
-1.0 0.0