Problem: The Olympic Games in Bercouver are in full swing now. Here everyone has their own objectives: sportsmen compete for medals, and sport commentators compete for more convenient positions to give a running commentary. Today the main sport events take place at three round stadiums, and the commentator's objective is to choose the best point of observation, that is to say the point from where all the three stadiums can be observed. As all the sport competitions are of the same importance, the stadiums should be observed at the same angle. If the number of points meeting the conditions is more than one, the point with the maximum angle of observation is prefered. 

Would you, please, help the famous Berland commentator G. Berniev to find the best point of observation. It should be noted, that the stadiums do not hide each other, the commentator can easily see one stadium through the other.

Input

The input data consists of three lines, each of them describes the position of one stadium. The lines have the format x, y, r, where (x, y) are the coordinates of the stadium's center ( - 103 ≤ x, y ≤ 103), and r (1 ≤ r ≤ 103) is its radius. All the numbers in the input data are integer, stadiums do not have common points, and their centers are not on the same line. 

Output

Print the coordinates of the required point with five digits after the decimal point. If there is no answer meeting the conditions, the program shouldn't print anything. The output data should be left blank.

Examples

Input

0 0 10
60 0 10
30 30 10


Output

30.00000 0.00000

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.StringTokenizer;

public final class Commentator {
    private static double getDistance(double x1, double y1, double x2, double y2) {
        double x = x1 - x2, y = y1 - y2;
        return x * x + y * y;
    }

    private static final double EPSILON = 1e-6;
    private static double getError(double[][] s, double x, double y) {
        double[] r = new double[3];
        for (int i = 0; i < 3; i++) {
            double d = getDistance(s[i][0], s[i][1], x, y);
            r[i] = d/(s[i][2] * s[i][2]);
        }

        double diff = 0;
        for (int i = 0; i < 3; i++) {
            diff += (r[i] - r[(i + 1) % 3]) * (r[i] - r[(i + 1) % 3]);
        }
        return diff;
    }

    private static final double[][] di = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}};
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        double[][] s = new double[3][3];
        double[] a = new double[2];
        for (int i = 0; i < 3; i++) {
            StringTokenizer tk = new StringTokenizer(br.readLine());
            for (int j = 0; j < 3; j++) {
                s[i][j] = Double.parseDouble((String) tk.nextElement());
                if (j < 2) a[j] += s[i][j];
            }
        }

        for (int i = 0; i < a.length; i++) a[i] /= 3;

        double delta = 1, r = 0.75;
        while (delta > EPSILON) {
            double error = getError(s, a[0], a[1]);
            //System.out.println(error + " " + Arrays.toString(a));
            double e = Double.MAX_VALUE;
            for (int i = 0; i < di.length; i++) {
                double x = a[0] + delta * di[i][0];
                double y = a[1] + delta * di[i][1];
                e = getError(s, x, y);
                if (e < error) {
                    a[0] = x;
                    a[1] = y;
                    break;
                }
            }

            if (e >= error) delta *= r;
            
            if (e < EPSILON) {
                System.out.println(a[0] + " " + a[1]);
                return;
            }
        }
    }
}