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.io.*;
import java.util.*;

public class C2 {
    FastScanner in;
    PrintWriter out;

    int x1, y1, r1, x2, y2, r2, x3, y3, r3;

    double[] getPoints(double angle) {
        double R1 = r1 / Math.sin(angle / 2), R2 = r2 / Math.sin(angle / 2), R3 = r3 / Math.sin(angle / 2);
        double A1 = x1 - x2, B1 = y1 - y2, C1 = (y1 * y1 - y2 * y2 + x1 * x1 - x2 * x2 - R1 * R1 + R2 * R2) / 2;
        double A2 = x1 - x3, B2 = y1 - y3, C2 = (y1 * y1 - y3 * y3 + x1 * x1 - x3 * x3 - R1 * R1 + R3 * R3) / 2;
        return new double[]{(C1 * B2 - C2 * B1) / (A1 * B2 - A2 * B1), (A1 * C2 - A2 * C1) / (A1 * B2 - A2 * B1)};
    }

    double calcDifference(double angle) {
        double R1 = r1 / Math.sin(angle / 2);
        double[] crd = getPoints(angle);
        return Math.sqrt((crd[0] - x1) * (crd[0] - x1) + (crd[1] - y1) * (crd[1] - y1)) - R1;
    }

    public void run() {
        try {
            in = new FastScanner();
            out = new PrintWriter(System.out);
            Locale.setDefault(Locale.US);

            x1 = in.nextInt();
            y1 = in.nextInt();
            r1 = in.nextInt();
            x2 = in.nextInt();
            y2 = in.nextInt();
            r2 = in.nextInt();
            x3 = in.nextInt();
            y3 = in.nextInt();
            r3 = in.nextInt();
            double L = 0, R = Math.PI;
            for (int i = 0; i < 1000; i++) {
                double M1 = (L * 2 + R) / 3, M2 = (L + R * 2) / 3;
                if (calcDifference(M1) > calcDifference(M2))
                    L = M1;
                else
                    R = M2;
            }
            R = Math.PI;
            for (int i = 0; i < 1000; i++) {
                double M = (L + R) / 2;
                if (calcDifference(M) < 0)
                    L = M;
                else
                    R = M;
            }
            if (Math.abs(calcDifference(L)) < 1e-5) {
                double[] ans = getPoints(L);
                out.format("%.5f %.5f\n", ans[0], ans[1]);
            }

            out.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        new C2().run();
    }

    class FastScanner {
        BufferedReader reader;
        StringTokenizer tokenizer;

        FastScanner() {
            reader = new BufferedReader(new InputStreamReader(System.in));
        }

        FastScanner(String filename) throws FileNotFoundException {
            reader = new BufferedReader(new FileReader(filename));
        }

        String nextToken() {
            if (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return tokenizer.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(nextToken());
        }

        long nextLong() {
            return Long.parseLong(nextToken());
        }

        double nextDouble() {
            return Double.parseDouble(nextToken());
        }
    }
}