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 static java.lang.Math.abs;
import static java.lang.Math.sqrt;
import static java.util.Arrays.deepToString;

public class Main{
    static void debug(Object...os){
        System.err.println(deepToString(os));
    }
    
    void run(){
        P A,B,C;
        double ra,rb,rc;
        A=new P(nextDouble(),nextDouble());
        ra = nextDouble();
        B=new P(nextDouble(),nextDouble());
        rb = nextDouble();
        C=new P(nextDouble(),nextDouble());
        rc = nextDouble();
        P[] is = ratioABC(A,B,C,ra,rb,rc);
        if(is!=null) {
            P res=null;
            for(P p:is)if(res==null || res.dist(A) > p.dist(A))res=p;
            System.out.println(res.x+" "+res.y);
        }
    }
    P[] ratioABC(P A,P B,P C,double a,double b,double c) {
        if(eq(a,b) && eq(a,c)) {
            return new P[] { circumcenter(A,B,C)};
        }
        if(eq(a,b)) {
            double d=a;a=c;c=d;
            P p=A;A=C;C=p;
        }
        if(eq(a,c)) {
            double d=a;a=b;b=d;
            P p=A;A=B;B=p;
        }
        P ab1 = A.mul(b).add(B.mul(a)).div(a+b);
        P ab2 = A.mul(-b).add(B.mul(a)).div(a-b);
        P o1 = ab1.add(ab2).div(2);
        double r1 = o1.dist(ab1);
        P ac1 = A.mul(c).add(C.mul(a)).div(a+c);
        P ac2 = A.mul(-c).add(C.mul(a)).div(a-c);
        P o2 = ac1.add(ac2).div(2);
        double r2 = o2.dist(ac1);
        return isCC(o1,r1,o2,r2);
    }
    
    P[] isCC(P o1,double r1,P o2,double r2) {
        double R = o1.dist2(o2);
        double x = (R+r1*r1-r2*r2)/(2*R);
        double Y = r1*r1/R - x*x;
        if(Y<-EPS)return null;
        if(Y<0)Y=0;
        P p1 = o1.add(o2.sub(o1).mul(x));
        P p2 = o2.sub(o1).rot90().mul(sqrt(Y));
        return new P[] {p1.add(p2),p1.sub(p2)};
    }
    // verified pku2957.
    P circumcenter(P A, P B, P C) {// 外心
        P AB = B.sub(A), BC = C.sub(B), CA = A.sub(C);
        return (A.add(B).sub(AB.rot90().mul(BC.dot(CA) / AB.det(BC)))).mul(0.5);
    }
    
    static final double EPS=1e-10;
    static int sgn(double d){
        return d<-EPS?-1:d>EPS?1:0;
    }
    static boolean le(double a,double b){
        return a+EPS<b;
    }
    static boolean eq(double a,double b){
        return abs(a-b)<EPS;
    }
    public class P implements Comparable<P>{
        double x,y;
        P(double x,double y){
            this.x=x;
            this.y=y;
        }
        double dist(P p){
            return sub(p).norm();
        }
        double dist2(P p){
            return sub(p).norm2();
        }
        double norm(){
            return sqrt(x*x+y*y);
        }
        double norm2() {
            return x*x+y*y;
        }
        P sub(P p){
            return new P(x-p.x,y-p.y);
        }
        P add(P p){
            return new P(x+p.x,y+p.y);
        }
        P mul(double d){
            return new P(x*d,y*d);
        }
        P div(double d) {
            assert sgn(d)!=0;
            return new P(x/d,y/d);
        }
        double dot(P p){
            return x*p.x+y*p.y;
        }
        double det(P p){
            return x*p.y-y*p.x;
        }
        P rot90(){
            return new P(-y,x);
        }
        public int compareTo(P o){
            return sgn(x-o.x)==0?sgn(y-o.y):sgn(x-o.x);
        }
    }
    
    int nextInt(){
        try{
            int c=System.in.read();
            if(c==-1) return c;
            while(c!='-'&&(c<'0'||'9'<c)){
                c=System.in.read();
                if(c==-1) return c;
            }
            if(c=='-') return -nextInt();
            int res=0;
            do{
                res*=10;
                res+=c-'0';
                c=System.in.read();
            }while('0'<=c&&c<='9');
            return res;
        }catch(Exception e){
            return -1;
        }
    }
    
    long nextLong(){
        try{
            int c=System.in.read();
            if(c==-1) return -1;
            while(c!='-'&&(c<'0'||'9'<c)){
                c=System.in.read();
                if(c==-1) return -1;
            }
            if(c=='-') return -nextLong();
            long res=0;
            do{
                res*=10;
                res+=c-'0';
                c=System.in.read();
            }while('0'<=c&&c<='9');
            return res;
        }catch(Exception e){
            return -1;
        }
    }
    
    double nextDouble(){
        return Double.parseDouble(next());
    }
    
    String next(){
        try{
            StringBuilder res=new StringBuilder("");
            int c=System.in.read();
            while(Character.isWhitespace(c))
                c=System.in.read();
            do{
                res.append((char)c);
            }while(!Character.isWhitespace(c=System.in.read()));
            return res.toString();
        }catch(Exception e){
            return null;
        }
    }
    
    String nextLine(){
        try{
            StringBuilder res=new StringBuilder("");
            int c=System.in.read();
            while(c=='\r'||c=='\n')
                c=System.in.read();
            do{
                res.append((char)c);
                c=System.in.read();
            }while(c!='\r'&&c!='\n');
            return res.toString();
        }catch(Exception e){
            return null;
        }
    }
    public static void main(String[] args){
        new Main().run();
    }
}