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.util.*;

public class CommentatorProblem {

    static class Circle {
        double x, y, r;

        Circle(double x1, double y1, double r1,
               double x2, double y2, double r2) {
            x = (x1 * r2 * r2 - x2 * r1 * r1) / (r2 * r2 - r1 * r1);
            y = (y1 * r2 * r2 - y2 * r1 * r1) / (r2 * r2 - r1 * r1);
            this.r = x * x + y * y
                    + (r1 * r1 * (x2 * x2 + y2 * y2)
                    - r2 * r2 * (x1 * x1 + y1 * y1))
                    / (r2 * r2 - r1 * r1);
        }
    }

    static class Line {
        double a, b, c;

        Line(double x1, double y1, double x2, double y2) {
            a = (x2 - x1) * 2.0;
            b = (y2 - y1) * 2.0;
            c = (x1 * x1 + y1 * y1) - (x2 * x2 + y2 * y2);
        }

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

    static void intersect(Line l1, Line l2) {
        double x = (l2.c * l1.b - l1.c * l2.b) / (l1.a * l2.b - l2.a * l1.b);
        double y = (l2.c * l1.a - l1.c * l2.a) / (l1.b * l2.a - l2.b * l1.a);
        System.out.println(x+" "+y);
    }

    static void intersect(Circle c1, Circle c2) {
        double a = 2.0 * (c1.x  - c2.x);
        double b = 2.0 * (c1.y  - c2.y);
        double c = (c1.r - c2.r)
                - (c1.x * c1.x - c2.x * c2.x)
                - (c1.y * c1.y - c2.y * c2.y);
        Line line = new Line(a, b, c);
        intersect(c1, line);
    }

    static double x0, y0;

    static void intersect(Circle circle, Line line) {
        double x1 = 0.0, y1 = 0.0;
        double x2 = 0.0, y2 = 0.0;
        double xc = circle.x;
        double yc = circle.y;
        double r2 = circle.r;
        double a = line.a;
        double b = line.b;
        double c = line.c;
        double a2,b2,c2;
        double discriminant;

        if (line.a != 0) {
            a2 = (b * b) / (a * a) + 1.0;
            b2 = 2.0 * (b / a) * (c / a + xc) - 2.0 * yc;
            c2 = (c / a + xc) * (c / a + xc) + yc * yc - r2;

            discriminant = b2 * b2 - 4.0 * a2 * c2;
            if (discriminant < 0.0)
                return;

            y1 = (-b2 + Math.sqrt(discriminant)) / (2.0 * a2);
            y2 = (-b2 - Math.sqrt(discriminant)) / (2.0 * a2);
            x1 = -(b * y1 + c) / a;
            x2 = -(b * y2 + c) / a;
        } else {
            a2 = (a * a) / (b * b) + 1.0;
            b2 = 2.0 * (a / b) * (c / b + yc) - 2.0 * xc;
            c2 = (c / b + yc) * (c / b + yc) + xc * xc - r2;

            discriminant = b2 * b2 - 4.0 * a2 * c2;
            if (discriminant < 0.0)
                return;

            x1 = (-b2 + Math.sqrt(discriminant)) / (2.0 * a2);
            x2 = (-b2 - Math.sqrt(discriminant)) / (2.0 * a2);
            y1 = -(a * x1 + c) / b;
            y2 = -(a * x2 + c) / b;
        }

        if ((x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0)
                < (x2 - x0) * (x2 - x0) + (y2 - y0) * (y2 - y0))
            System.out.println(x1+" "+y1);
        else
            System.out.println(x2+" "+y2);
    }

    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        double[] xCoordinate=new double[3];
        double[] yCoordinate=new double[3];
        double[] radius= new double[3];
        for(int i=0;i<3;i++){
            xCoordinate[i]=cin.nextDouble();
            yCoordinate[i]=cin.nextDouble();
            radius[i]=cin.nextDouble();
        }
        x0 = xCoordinate[0]; y0 = yCoordinate[0];

        if (radius[0] == radius[1] && radius[1] == radius[2]) {
            Line l12 = new Line(xCoordinate[0], yCoordinate[0], xCoordinate[1], yCoordinate[1]);
            Line l23 = new Line(xCoordinate[1], yCoordinate[1], xCoordinate[2], yCoordinate[2]);
            intersect(l12, l23);
        } else if (radius[0] != radius[1] && radius[1] != radius[2]) {
            Circle c12 = new Circle(xCoordinate[0], yCoordinate[0], radius[0], xCoordinate[1], yCoordinate[1], radius[1]);
            Circle c23 = new Circle(xCoordinate[1], yCoordinate[1], radius[1], xCoordinate[2], yCoordinate[2], radius[2]);
            intersect(c12, c23);
        } else if (radius[0] != radius[1] && radius[1] == radius[2]) {
            Circle c12 = new Circle(xCoordinate[0], yCoordinate[0], radius[0], xCoordinate[1], yCoordinate[1], radius[1]);
            Line l23 = new Line(xCoordinate[1], yCoordinate[1], xCoordinate[2], yCoordinate[2]);
            intersect(c12, l23);
        } else if (radius[0] == radius[1] && radius[1] != radius[2]) {
            Line l12 = new Line(xCoordinate[0], yCoordinate[0], xCoordinate[1], yCoordinate[1]);
            Circle c23 = new Circle(xCoordinate[1], yCoordinate[1], radius[1], xCoordinate[2], yCoordinate[2], radius[2]);
            intersect(c23, l12);
        }
    }
}