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:
/**
 * ******* Created on 17/9/19 9:29 PM*******
 */

import java.io.*;
import java.text.DecimalFormat;
import java.util.*;

public class CCon2 {
    static class Circle{
        double x;
        double y;
        double r;
        public Circle(double x, double y , double r){
            this.x =x;
            this.y =y;
            this.r =r;
        }
    }
    final static double eps = 1e-7;
    public static void main(String[] args) throws IOException {

        try (Input input = new StandardInput(); PrintWriter writer = new PrintWriter(System.out)) {
            Circle[] circles = new Circle[3];
            double curx =0, cury=0;
            for(int i=0;i<3;i++){
                circles[i]= new Circle(input.nextDouble(), input.nextDouble(), input.nextDouble());
                curx += circles[i].x;
                cury += circles[i].y;
            }
            curx/=3.0;
            cury/=3.0;
            for(double step=1.0; step>eps;){

                if( F(curx-step,cury, circles) < F(curx, cury,circles) )
                    curx -= step;
                else if( F(curx,cury-step, circles) < F(curx, cury,circles) )
                    cury -= step;
                else if( F(curx+step,cury, circles) < F(curx, cury,circles) )
                    curx += step;
                else if( F(curx,cury+step, circles) < F(curx, cury,circles) )
                    cury += step;
                else step =step*0.7;
            }
            if(F(curx, cury,circles)< eps){
                DecimalFormat format = new DecimalFormat();
                format.setMinimumFractionDigits(5);
                System.out.println( format.format(curx) +" "+ format.format(cury));
            }else{
                System.out.println();
            }
        }
    }

    private static double F(double curx, double cury, Circle[] circles) {
        double[] d = new double[3];
        for(int i=0;i<3;i++){
            double dis = Math.sqrt( (curx-circles[i].x) *(curx-circles[i].x)
                    + (cury-circles[i].y)*(cury-circles[i].y) );
            d[i]= (circles[i].r)/(dis) ;
        }
        double res =0.0;
        for(int i=0;i<3;i++){
            double dd= d[i]-d[(i+1)%3];
            res += dd*dd;
        }
        return res;
    }

    interface Input extends Closeable {
        String next() throws IOException;

        default int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        default long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        default double nextDouble() throws IOException {
            return Double.parseDouble(next());
        }

        default int[] readIntArray() throws IOException {
            return readIntArray(nextInt());
        }

        default int[] readIntArray(int size) throws IOException {
            int[] array = new int[size];
            for (int i = 0; i < array.length; i++) {
                array[i] = nextInt();
            }
            return array;
        }

        default long[] readLongArray(int size) throws IOException {
            long[] array = new long[size];
            for (int i = 0; i < array.length; i++) {
                array[i] = nextLong();
            }
            return array;
        }
    }

    private static class StandardInput implements Input {
        private final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        private StringTokenizer stringTokenizer;

        @Override
        public void close() throws IOException {
            reader.close();
        }

        @Override
        public String next() throws IOException {
            if (stringTokenizer == null || !stringTokenizer.hasMoreTokens()) {
                stringTokenizer = new StringTokenizer(reader.readLine());
            }
            return stringTokenizer.nextToken();
        }
    }
}