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;

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);
    }

}