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.IOException;
import java.io.InputStreamReader;

import static java.lang.Math.max;
import static java.lang.Math.sqrt;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        double x[] = new double[3];
        double y[] = new double[3];
        double r[] = new double[3];
        for (int i = 0; i < 3; i++) {
            String[] f = br.readLine().split(" ");
            x[i] = Double.parseDouble(f[0]);
            y[i] = Double.parseDouble(f[1]);
            r[i] = Double.parseDouble(f[2]);
        }

        double c1[] = getCoefs(x[0], y[0], r[0], x[1], y[1], r[1]);
        double c2[] = getCoefs(x[0], y[0], r[0], x[2], y[2], r[2]);
        if (zero(c1[0])) {
            double tmp[] = c1;
            c1 = c2;
            c2 = tmp;
        }
        if (!zero(c1[0])) {
            double mult = c2[0] / c1[0];
            for (int i = 0; i < 4; i++)
                c2[i] -= c1[i] * mult;
        }

        // assert(zero(c2[0]))
        boolean xySwap = zero(c2[1]);
        if (xySwap) {
            swap(c1, 1, 2);
            swap(c2, 1, 2);
        }
//        if (zero(c2[1]))
//            return;

        // assert(!zero(c2[1]))
        // x = -c2[2] / c2[1] * y - c2[3] / c2[1] = d * y + e
        double d = -c2[2] / c2[1];
        double e = -c2[3] / c2[1];
        // c1[0] * x^2 + c1[0] * y^2 + c1[1] * x + c1[2] * y + c1[3] = 0
        // c1[0] * (d^2 + 1) * y^2 + (2 * c1[0] * d * e + c1[1] * d + c1[2]) * y + c1[0] * e^2 + c1[1] * e + c1[3] = 0
        // a * y^2 + b * y + c = 0
        double a = c1[0] * (sqr(d) + 1);
        double b = 2 * c1[0] * d * e + c1[1] * d + c1[2];
        double c = c1[0] * sqr(e) + c1[1] * e + c1[3];
        double ys[];
        if (zero(a)) {
//            if (zero(b))
//                return;
            ys = new double[]{-c / b, -c / b};
        } else {
            double D = sqr(b) - 4 * a * c;
            if (D < -1e-10)
                return;
            D = sqrt(max(0, D));
            ys = new double[]{-(b + D) / 2 / a, -(b - D) / 2 / a};
        }
        double xs[] = new double[2];
        double ds[] = new double[2];
        for (int i = 0; i < 2; i++) {
            xs[i] = d * ys[i] + e;
            ds[i] = sqr(xs[i] - x[0]) + sqr(ys[i] - y[0]);
        }
        int ms = ds[0] < ds[1] ? 0 : 1;
        double xy[] = {xs[ms], ys[ms]};
        if (xySwap)
            swap(xy, 0, 1);
        System.out.printf("%.5f %.5f%n", xy[0], xy[1]);
    }

    // ((x - x1) ^ 2 + (y - y1) ^ 2) / r1 ^ 2 - ((x - x2) ^ 2 + (y - y2) ^ 2) / r2 ^ 2 = 0
    // c[0] * x^2 + c[0] * y^2 + c[1] * x + c[2] * y + c[3] = 0
    private static double[] getCoefs(double x1, double y1, double r1, double x2, double y2, double r2) {
        return new double[]{
                1 / sqr(r1) - 1 / sqr(r2),
                2 * (x2 / sqr(r2) - x1 / sqr(r1)),
                2 * (y2 / sqr(r2) - y1 / sqr(r1)),
                (sqr(x1) + sqr(y1)) / sqr(r1) - (sqr(x2) + sqr(y2)) / sqr(r2)};
    }

    private static double sqr(double t) {
        return t * t;
    }

    private static boolean zero(double t) {
        return Math.abs(t) < 1e-10;
    }

    private static void swap(double[] a, int i, int j) {
        double x = a[i];
        a[i] = a[j];
        a[j] = x;
    }
}