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:
//package solution2c;
import java.util.*;
import java.awt.Point;
import java.text.DecimalFormat;
public class Solution2c {
    public static class circle {
        double r_2;
        Point.Double O;
        circle(double X,double Y,double R) {
            O=new Point.Double(X,Y);
            r_2=(double)(Math.pow(R,2));
        }
    }
    public static class P_2_2 {
        double x2,x1,y1,c;
        P_2_2(double X2,double X1,double Y1,double C) {
            this.x2=X2;this.x1=X1;this.y1=Y1;this.c=C;
        }
    }
    public static double[] solve(P_2_2 e) {
        double D=(double)(Math.pow(e.x1,2)-4.0f*e.x2*e.c);
        if(D>0) {
            double[] roots=new double[2];
            roots[0]=(double)((-e.x1+Math.sqrt(D))/2.0f/e.x2);
            roots[1]=(double)((-e.x1-Math.sqrt(D))/2.0f/e.x2);
            return roots;
        }
        else if(D==0) {
            double[] roots=new double[1];
            roots[0]=-e.x1/2.0f/e.x2;
            return roots;
        }
        else {
            double[] roots=new double[0];
            return roots;
        }
    }
    public static Point.Double[] intersection(P_2_2 e1,P_2_2 e2) {
        P_2_2 e3,e4;
        if(e1.x2==0 && e2.x2==0) {
            Point.Double[] solution={new Point.Double((e1.y1*e2.c-e2.y1*e1.c)/(e1.x1*e2.y1-e1.y1*e2.x1),(e2.x1*e1.c-e1.x1*e2.c)/(e1.x1*e2.y1-e1.y1*e2.x1))};
            return solution;
        }
        else if(e1.x2==0 && e2.x2!=0) {
            e3=e1;e4=e2;
        }
        else if(e1.x2!=0 && e2.x2==0) {
            e3=e2;e4=e1;
        }
        else {
            e3=new P_2_2(0,e1.x1*e2.x2-e2.x1*e1.x2,e1.y1*e2.x2-e2.y1*e1.x2,e1.c*e2.x2-e2.c*e1.x2);
            e4=e1;
        }
        if(e3.x1!=0 && e3.y1!=0) {
            double[] x=solve(new P_2_2((double)(e4.x2*(Math.pow(e3.x1,2)+Math.pow(e3.y1,2))),(double)(e4.x1*Math.pow(e3.y1,2)+2.0f*e4.x2*e3.x1*e3.c-e3.x1*e3.y1*e4.y1),0.0f,(double)(e4.x2*Math.pow(e3.c,2)-e4.y1*e3.c*e3.y1+e4.c*Math.pow(e3.y1,2))));
            Point.Double[] solution=new Point.Double[x.length];
            for(int i=0;i<solution.length;i++)
                solution[i]=new Point.Double(x[i],(-e3.c-e3.x1*x[i])/e3.y1);
            return solution;
        }
        else if(e3.x1==0 && e3.y1!=0) {
            double y=-e3.c/e3.y1;
            double[] x=solve(new P_2_2((double)(e4.x2*Math.pow(e3.y1,2)),(double)(e4.x1*Math.pow(e3.y1,2)),0.0f,(double)(e4.x2*Math.pow(e3.c,2)-e3.c*e3.y1*e4.y1+e4.c*Math.pow(e3.y1,2))));
            Point.Double[] solution=new Point.Double[x.length];
            for(int i=0;i<solution.length;i++)
                solution[i]=new Point.Double(x[i],y);
            return solution;
        }
        else {
            double x=-e3.c/e3.x1;
            double[] y=solve(new P_2_2((double)(e4.x2*Math.pow(e3.x1,2)),(double)(e4.y1*Math.pow(e3.x1,2)),0.0f,(double)(e4.x2*Math.pow(e3.c,2)-e3.c*e3.x1*e4.x1+e4.c*Math.pow(e3.x1,2))));
            Point.Double[] solution=new Point.Double[y.length];
            for(int i=0;i<solution.length;i++)
                solution[i]=new Point.Double(x,y[i]);
            return solution;
        }
    }
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        int index=0;
        circle[] s=new circle[3];
        P_2_2[] l=new P_2_2[3];
        ArrayList<Point.Double> solutions=new ArrayList();
        DecimalFormat df6=new DecimalFormat("#.#####");
        for(int i=0;i<3;i++)
            s[i]=new circle(input.nextDouble(),input.nextDouble(),input.nextDouble());
        for(int i=0;i<2;i++)
            for(int j=i+1;j<3;j++,index++)
                l[index]=new P_2_2(s[i].r_2-s[j].r_2,2.0f*(s[j].r_2*s[i].O.x-s[i].r_2*s[j].O.x),2.0f*(s[j].r_2*s[i].O.y-s[i].r_2*s[j].O.y),(double)(s[i].r_2*(Math.pow(s[j].O.x,2)+Math.pow(s[j].O.y,2))-s[j].r_2*(Math.pow(s[i].O.x,2)+Math.pow(s[i].O.y,2))));
        for(Point.Double p:intersection(l[0],l[1]))
            for(Point.Double q:intersection(l[0],l[2]))
                if (df6.format(p.x).equals(df6.format(q.x)) && df6.format(p.y).equals(df6.format(q.y))) {
                    solutions.add(p);
                }
        if(solutions.size()==2)
            if(solutions.get(0).distance(s[0].O)<solutions.get(1).distance(s[0].O))
                System.out.print(df6.format(solutions.get(0).x)+" "+df6.format(solutions.get(0).y));
            else
                System.out.print(df6.format(solutions.get(1).x)+" "+df6.format(solutions.get(1).y));
        if(solutions.size()==1)
            System.out.print(df6.format(solutions.get(0).x)+" "+df6.format(solutions.get(0).y));
    }
}