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.Scanner;

/*
 * kab = (ay - by) / (ax - bx);
 * y - maby = (-1/kab) * (x - mabx);
 * y - macy = (-1/kac) * (x - macx);
 * kab*maby - kab*y + mabx = x;
 * kac*macy - kac*y + macx = x;
 * kab*maby + mabx - kac*macy - macx = (kab - kac) * y;
 * 
 * double k = -1 / kab;
 * double b = mabx / kab + maby;
 * y = kx + b;
 * 
 * ar / Math.hypot(ax-x, ay-y) = sinA;
 * cr / Math.hypot(cx-x, cy-y) = sinA;
 * 
 * ar2*((cx-x)2 + (cy-y)2) = cr2*((ax-x)2 + (ay-y)2);
 * ar2*(cx2-2*cx*x+x2+cy2-2*cy*y+y2) = cr2*(ax2-2*ax*x+x2+ay2-2*ay*y+y2);
 * (ar2-cr2)*y2+2*(ay*cr2-cy*ar2)*y + ar2*cx2-cr2*ax2+ar2*cy2-cr2*ay2
 * =(cr2-ar2)*x2+2*(ar2*cx-cr2*ax)*x
 * (ar2-cr2)*(k2*x2+2*k*b*x+b2)+2*(ay*cr2-cy*ar2)*(kx+b) + ar2*cx2-cr2*ax2+ar2*cy2-cr2*ay2
 * =(cr2-ar2)*x2+2*(ar2*cx-cr2*ax)*x
 * (k2*(ar2-cr2)-(cr2-ar2))*x2+2*(k*(b*(ar2-cr2)+ay*cr2-cy*ar2)-(ar2*cx-cr2*ax))*x + 
 * ar2*cx2-cr2*ax2+ar2*cy2-cr2*ay2+(ar2-cr2)*b2+2*(ay*cr2-cy*ar2)*b
 * 
 * ar2*(cx-mabx)2-cr2*(ax-mabx)2=cr2*(ay2*-2*ay*y+y2)-ar2*(cy2-2*cy*y+y2);
 * (cr2-ar2)*y2+2*(cy*ar2-ay*cr2)*y+cr2*ay2-ar2*cy2+cr2*(ax-mabx)2-ar2*(cx-mabx)2;
 * 
 * 
 * ar / Math.hypot(ax-x, ay-y) = sinA;
 * br / Math.hypot(bx-x, by-y) = sinA;
 * cr / Math.hypot(cx-x, cy-y) = sinA;
 * 
 * ar2*((bx-x)2 + (by-y)2) = br2*((ax-x)2 + (ay-y)2);
 * ar2*(bx2-2*bx*x+x2 + y2-2*by*y+by2) = br2*(ax2-2*ax*x+x2+ay2-2*ay*y+y2);
 * (ar2-br2)*y2+2*(ay*br2-by*ar2)*y+ar2*bx2+ar2*by2-br2*ax2-br2*ay2
 * = (br2-ar2)*x2+2*(bx*ar2-ax*br2)*x;
 * 
 * ar2*((cx-x)2 + (cy-y)2) = cr2*((ax-x)2 + (ay-y)2);
 * ar2*(cx2-2*cx*x+x2 + cy2-2*cy*y+y2) = cr2*(ax2-2*ax*x+x2+ay2-2*ay*y+y2);
 * (ar2-cr2)*y2+2*(ay*cr2-cy*ar2)*y + ar2*cx2+ar2*cy2-cr2*ax2-cr2*ay2
 * = (cr2-ar2)*x2+2*(ar2*cx-cr2*ax)*x;
 * 
 * 2*((ay*br2-by*ar2)*(ar2-cr2)-(ay*cr2-cy*ar2)*(ar2-br2))*y
 * + (ar2*bx2+ar2*by2-br2*ax2-br2*ay2)*(ar2-cr2)
 * - (ar2*cx2+ar2*cy2-cr2*ax2-cr2*ay2)*(ar2-br2)
 * = 2*((bx*ar2-ax*br2)*(ar2-cr2) - (ar2*cx-cr2*ax)*(ar2-br2))*x;
 * 
 * 2*((ay*ar2*br2-by*ar4-ay*br2*cr2+by*ar2*cr2)-(ay*ar2*cr2-ay*br2*cr2-cy*ar4+cy*ar2*br2))*y
 * + (ar4*bx2+ar4*by2-ar2*br2*ax2-ar2*br2*ay2-ar2*cr2*bx2-ar2*cr2*by2+br2*cr2*ax2+br2*cr2*ay2)
 * - (ar4*cx2+ar4*cy2-ar2*cr2*ax2-ar2*cr2*ay2-ar2*br2*cx2-ar2*br2*cy2+br2*cr2*ax2+br2*cr2*ay2)
 * = 2*(bx*ar4-bx*ar2*cr2-ax*ar2*br2+ax*br2*cr2 - (cx*ar4-ax*ar2*cr2-cx*ar2*br2+ax*br2*cr2))*x
 * 
 * 2*ar2*((ay-cy)*br2+(cy-by)*ar2+(by-ay)*cr2)*y
 * + ar4*(bx2+by2-cx2-cy2) + ar2*br2*(cx2+cy2-ax2-ay2) + ar2*cr2*(ax2+ay2-bx2-by2)
 * = 2*(ar4*(bx-cx)+ar2*cr2*(ax-bx)+ar2*br2*(cx-ax))*x
 * 
 * 2*((ay-cy)*br2+(cy-by)*ar2+(by-ay)*cr2)*y
 * + ar2*(bx2+by2-cx2-cy2) + br2*(cx2+cy2-ax2-ay2) + cr2*(ax2+ay2-bx2-by2)
 * = 2*(ar2*(bx-cx)+cr2*(ax-bx)+br2*(cx-ax))*x
 * 
 * x = a/b * y + c/b;
 * aa = a/b;
 * cc = c/b;
 * x = aa*y + cc;
 * 
 * (ar2-br2)*y2+2*(ay*br2-by*ar2)*y+ar2*bx2+ar2*by2-br2*ax2-br2*ay2
 * = (br2-ar2)*(a*y+c)2+2*(bx*ar2-ax*br2)*(a*y+c);
 * = (br2-ar2)*(a2*y2+2*a*c*y+c2)+2*(bx*ar2-ax*br2)*(a*y+c)
 * 
 * (ar2-br2)*(a2+1)*y2+2*((ay*br2-by*ar2)+(ar2-br2)*a*c-(bx*ar2-ax*br2)*a)*y
 * + ar2*bx2+ar2*by2-br2*ax2-br2*ay2 + (ar2-br2)*c2 - 2*(bx*ar2-ax*br2)*c = 0;
 */
public class CommentatorProblem
{
    void p(int ax, int ay, int ar, int bx, int by, int br, int cx, int cy, int cr)
    {
        if (ar == br && br == cr)
            ll(ax, ay, ar, bx, by, br, cx, cy, cr);
        else if (ar == br || br == cr || ar == cr)
            if (br == cr)
                lc(cx, cy, cr, bx ,by, br, ax, ay, ar);
            else if (ar == cr)
                lc(ax, ay, ar, cx, cy, cr, bx, by, br);
            else
                lc(ax, ay, ar, bx, by, br, cx, cy, cr);
        else
            cc(ax, ay, ar, bx, by, br, cx, cy, cr);
    }
    
    void ll(int ax, int ay, int ar, int bx, int by, int br, int cx, int cy, int cr)
    {
        double kab = 0;
        if (ax != bx)
            kab = (ay - by) * 1.0 / (ax - bx);
        float mabx = (ax + bx) / 2;
        float maby = (ay + by) / 2;
        
        double kac = 0;
        if (ax != cx)
            kac = (ay - cy) * 1.0 / (ax - cx);
        float macx = (ax + cx) / 2;
        float macy = (ay + cy) / 2;
        
        double y = 0;
        double x = 0;
        if (ax == bx)
        {
            y = maby;
            x = kac*macy - kac*y + macx;
        }
        else if (ax == cx)
        {
            y = macy;
            x = kab*maby - kab*y + mabx;
        }
        else
        {
            y = (kab*maby + mabx - kac*macy - macx) / (kab - kac);
            x = kab*maby - kab*y + mabx;
        }
        
        System.out.println(x+" "+y);
    }
    
    void lc(int ax, int ay, int ar, int bx, int by, int br, int cx, int cy, int cr)
    {
        float mabx = (ax + bx) / 2;
        float maby = (ay + by) / 2;
        
        if (ay != by)
        {
            double k = (bx - ax) * 1.0 / (ay - by);
            double b = maby - k * mabx;
            
            double fa = k*k*(ar*ar-cr*cr)-(cr*cr-ar*ar);
            double fb = 2*(k*(b*(ar*ar-cr*cr)+ay*cr*cr-cy*ar*ar)-(ar*ar*cx-cr*cr*ax));
            double fc = ar*ar*cx*cx-cr*cr*ax*ax+ar*ar*cy*cy - 
                    cr*cr*ay*ay+(ar*ar-cr*cr)*b*b + 2*(ay*cr*cr-cy*ar*ar)*b;

            double tmp = fb*fb - 4*fa*fc;
            if (tmp < 0)
            {
                return;
            }
            tmp = Math.sqrt(tmp);
            double x1 = (-1.0 * fb + tmp) / (2 * fa);
            double y1 = k * x1 + b;
            
            double x2 = (-1.0 * fb - tmp) / (2 * fa);
            double y2 = k * x2 + b;

            double d1 = Math.hypot(ax-x1, ay-y1);
            double d2 = Math.hypot(ax-x2, ay-y2);
            
            double angle1 = Math.asin(ar / d1);
            double angle2 = Math.asin(ar / d2);
            
            double y = angle1 > angle2 ? y1 : y2;
            double x = angle1 > angle2 ? x1 : x2;
            
            System.out.println(x+" "+y);
        }
        else
        {
            double x = mabx;
            double fa = cr*cr - ar*ar;
            double fb = 2*(cy*ar*ar - ay*cr*cr);
            double fc = cr*cr*ay*ay-ar*ar*cy*cy+
                    cr*cr*(ax-mabx)*(ax-mabx)-ar*ar*(cx-mabx)*(cx-mabx);

            double tmp = fb*fb - 4*fa*fc;
            if (tmp < 0)
            {
                return;
            }
            tmp = Math.sqrt(tmp);
            double y1 = (-1.0 * fb + tmp) / (2 * fa);
            double y2 = (-1.0 * fb - tmp) / (2 * fa);
            
            double d1 = Math.hypot(ax-x, ay-y1);
            double d2 = Math.hypot(ax-x, ay-y2);
            
            double angle1 = Math.asin(ar / d1);
            double angle2 = Math.asin(ar / d2);
            
            double y = angle1 > angle2 ? y1 : y2;
            
            System.out.println(x+" "+y);
        }
    }
    
    void cc(int ax, int ay, int ar, int bx, int by, int br, int cx, int cy, int cr)
    {
        long a = 2*((ay-cy)*br*br+(cy-by)*ar*ar+(by-ay)*cr*cr);
        long b = 2*(ar*ar*(bx-cx)+cr*cr*(ax-bx)+br*br*(cx-ax));
        long c = ar*ar*(bx*bx+by*by-cx*cx-cy*cy) 
                + br*br*(cx*cx+cy*cy-ax*ax-ay*ay)
                + cr*cr*(ax*ax+ay*ay-bx*bx-by*by);
        
        double aa = a * 1.0 / b;
        double cc = c * 1.0 / b;
        
        double fa = (ar*ar - br*br) * (aa*aa + 1);
        double fb = 2*((ay*br*br-by*ar*ar)+(ar*ar-br*br)*aa*cc-(bx*ar*ar-ax*br*br)*aa);
        double fc = ar*ar*bx*bx+ar*ar*by*by-br*br*ax*ax-br*br*ay*ay 
                + (ar*ar-br*br)*cc*cc - 2*(bx*ar*ar-ax*br*br)*cc;
        
        double tmp = fb*fb - 4*fa*fc;
        if (tmp < 0)
        {
            return;
        }
        tmp = Math.sqrt(tmp);
        double y1 = (-1.0 * fb + tmp) / (2 * fa);
        double y2 = (-1.0 * fb - tmp) / (2 * fa);
        
        double x1 = aa * y1 + cc;
        double x2 = aa * y2 + cc;

        double d1 = Math.hypot(ax-x1, ay-y1);
        double d2 = Math.hypot(ax-x2, ay-y2);
        
        double angle1 = Math.asin(ar / d1);
        double angle2 = Math.asin(ar / d2);
        
        double y = angle1 > angle2 ? y1 : y2;
        double x = angle1 > angle2 ? x1 : x2;
        
        double angle = Math.max(angle1, angle2);
        double dc = Math.hypot(cx-x, cy-y);
        if (Math.asin(cr / dc) - angle > Math.pow(10, -6))
        {
            return;
        }
        
        System.out.println(x+" "+y);
    }
    
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int ax = sc.nextInt();
        int ay = sc.nextInt();
        int ar = sc.nextInt();
        
        int bx = sc.nextInt();
        int by = sc.nextInt();
        int br = sc.nextInt();
        
        int cx = sc.nextInt();
        int cy = sc.nextInt();
        int cr = sc.nextInt();
        
        new CommentatorProblem().p(ax, ay, ar, bx, by, br, cx, cy, cr);
    }

}