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.*;
import java.text.*;
import java.math.*;
import java.util.*;

public class Main implements Runnable {

    final static String taskname = "filename";

    final double eps = 1e-5;

    circle[] stad;
    double ans_x, ans_y, ans_r;
    boolean ans_found;

    void test2(double x, double y, int e )
    {
        double[] rr = new double[3];
        for (int i = 0; i < 3; i++) {
            double r = (x - stad[i].x) * (x - stad[i].x) + (y - stad[i].y)
                    * (y - stad[i].y);
            rr[i] = Math.sqrt(r);
        }
        {
            double[] t = new double[3];
            for (int i=0; i<3; i++)
                t[i] = rr[i]/stad[i].r;
            for (int i=0; i<3; i++)
                for (int j=i+1; j<3; j++)
                    if (i!=e && j!=e )
                        if (Math.abs(t[i]-t[j])>eps)
                            System.out.println("FAIL 2");
        }
    }
    
    void test(double x, double y) {
        double[] rr = new double[3];
        for (int i = 0; i < 3; i++) {
            double r = (x - stad[i].x) * (x - stad[i].x) + (y - stad[i].y)
                    * (y - stad[i].y);
            if (r < stad[i].r * stad[i].r - eps)
                return;
            rr[i] = Math.sqrt(r);
        }
        //test2(x, y, -1);
        
        if (!ans_found || ans_r > rr[0]) {
            ans_x = x;
            ans_y = y;
            ans_r = rr[0];
            ans_found = true;
        }
    }

    public void solve() throws Exception {
        stad = new circle[3];
        ans_found = false;
        for (int i = 0; i < 3; i++)
            stad[i] = new circle(iread(), iread(), iread());
        line[] lines = new line[2];
        circle[] circles = new circle[2];
        boolean[] is_line = new boolean[2];
        for (int k = 0; k < 2; k++) {
            int first = 0, second = k + 1;
            if (stad[first].r == stad[second].r) {
                is_line[k] = true;
                double A = stad[second].x - stad[first].x;
                double B = stad[second].y - stad[first].y;
                double D = Math.sqrt(A * A + B * B);
                A /= D;
                B /= D;
                double C = -(A * (stad[first].x + stad[second].x) + B
                        * (stad[first].y + stad[second].y)) / 2.0;
                lines[k] = new line(A, B, C);
            } else {
                is_line[k] = false;
                double r1 = stad[first].r, r2 = stad[second].r;
                double x1 = stad[first].x, y1 = stad[first].y;
                double x2 = stad[second].x, y2 = stad[second].y;
                double X1 = (x1 * r2 + x2 * r1) / (r1 + r2);
                double Y1 = (y1 * r2 + y2 * r1) / (r1 + r2);
                double X2 = (-x1 * r2 + x2 * r1) / (r1 - r2);
                double Y2 = (-y1 * r2 + y2 * r1) / (r1 - r2);

                double X = (X1 + X2) / 2.0;
                double Y = (Y1 + Y2) / 2.0;
                double R = Math.sqrt((X2 - X1) * (X2 - X1) + (Y2 - Y1)
                        * (Y2 - Y1)) / 2.0;
                circles[k] = new circle(X, Y, R);
                
//              test2(X1, Y1, 3-first-second);
//              test2(X2, Y2, 3-first-second);
            }

        }
        if (is_line[0] && is_line[1])
            intersect(lines[0], lines[1]);
        if (is_line[0] && !is_line[1])
            intersect(lines[0], circles[1]);
        if (!is_line[0] && is_line[1])
            intersect(lines[1], circles[0]);
        if (!is_line[0] && !is_line[1])
            intersect(circles[0], circles[1]);
        if (ans_found)
        {
            DecimalFormat df = new DecimalFormat("0.00000");
            out.write(df.format(ans_x)+ " "+df.format(ans_y));
        }
    }

    void intersect(circle u, circle v) {
        double dx = v.x - u.x, dy = v.y - u.y;
        double r1 = u.r, r2 = v.r, R = Math.sqrt(dx * dx + dy * dy);
        dx /= R;
        dy /= R;
        if (r1 + r2 < R - eps || r1 + R < r2 - eps || r2 + R < r1 - eps)
            return;
        double d1 = (r1 * r1 - r2 * r2 + R * R) / (2 * R);
        double d2 = Math.sqrt(r1 * r1 - d1 * d1);
        double X1 = u.x + d1 * dx, Y1 = u.y + d1 * dy;
        double X2 = -d2 * dy, Y2 = d2 * dx;
        test(X1 + X2, Y1 + Y2);
        test(X1 - X2, Y1 - Y2);
    }

    void intersect(line u, circle v) {
        double D = v.x * u.a + v.y * u.b + u.c;
        if (Math.abs(D) > v.r + eps)
            return;
        double D2 = Math.sqrt(v.r * v.r - D * D);
        double X1 = v.x - D * u.a, Y1 = v.y - D * u.b;
        double X2 = u.b * D2, Y2 = -u.a * D2;
        test(X1 + X2, Y1 + Y2);
        test(X1 - X2, Y1 - Y2);
    }

    void intersect(line u, line v) {
        double D = u.a * v.b - u.b * v.a;
        if (D < eps)
            return;
        double A = -(u.c * v.b - u.b * v.c);
        double B = -(u.a * v.c - u.c * v.a);
        test(A / D, B / D);
    }

    class line {
        double a, b, c;

        public line(double a, double b, double c) {
            this.a = a;
            this.b = b;
            this.c = c;
        }
    }

    class circle {
        double x, y, r;

        public circle(double x, double y, double r) {
            this.x = x;
            this.y = y;
            this.r = r;
        }
    }

    public void run() {
        try{
            Locale.setDefault(Locale.US);
        } catch (Exception e)
        {
            
        }
        try {
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new BufferedWriter(new OutputStreamWriter(System.out));
            // in = new BufferedReader(new FileReader(taskname + ".in"));
            // out = new BufferedWriter(new FileWriter(taskname + ".out"));
            solve();
            out.flush();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(1);
        }
    }

    public int iread() throws Exception {
        return Integer.parseInt(readword());
    }

    public double dread() throws Exception {
        return Double.parseDouble(readword());
    }

    public long lread() throws Exception {
        return Long.parseLong(readword());
    }

    BufferedReader in;

    BufferedWriter out;

    public String readword() throws IOException {
        StringBuilder b = new StringBuilder();
        int c;
        c = in.read();
        while (c >= 0 && c <= ' ')
            c = in.read();
        if (c < 0)
            return "";
        while (c > ' ') {
            b.append((char) c);
            c = in.read();
        }
        return b.toString();
    }

    public static void main(String[] args) {
        // Locale.setDefault(Locale.US);
        new Thread(new Main()).start();
    }
}