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.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter writer = new PrintWriter(System.out);

        String[] data = reader.readLine().split("\\s");
        Circle a = new Circle(Integer.parseInt(data[0]), Integer.parseInt(data[1]), Integer.parseInt(data[2]));
        data = reader.readLine().split("\\s");
        Circle b = new Circle(Integer.parseInt(data[0]), Integer.parseInt(data[1]), Integer.parseInt(data[2]));
        data = reader.readLine().split("\\s");
        Circle c = new Circle(Integer.parseInt(data[0]), Integer.parseInt(data[1]), Integer.parseInt(data[2]));

        Point ans = getCenter(a, b, c);
        if (ans != null) {
            writer.printf("%.5f %.5f", ans.x, ans.y);
        }
        writer.close();
    }

    public static Point getCenter(Circle a, Circle b, Circle c) {
        double totalX = (a.x + b.x + c.x) / 3.0;
        double totalY = (a.y + b.y + c.y) / 3.0;

        double angel = angel(totalX, totalY, a, b, c);
        double step = 1.0;
        while (step > 1e-7) {
            boolean stop = false;

            for (int i = 0; i < 4; i++) {
                double newX = totalX + step * offset(i, 0);
                double newY = totalY + step * offset(i, 1);
                double newAngel = angel(newX, newY, a, b, c);
                if (newAngel < angel) {
                    angel = newAngel;
                    totalX = newX;
                    totalY = newY;
                    stop = true;
                }
            }
            if (!stop) step *= 0.8;
        }
        if (angel < 1e-6) {
            return new Point(totalX, totalY);
        }
        return null;
    }

    private static int offset(int i, int j) {
        switch (i) {
            case 0:
                return j==0 ? 1 : 0;
            case 1:
                return j==0 ? -1 : 0;
            case 2:
                return j==0 ? 0 : 1;
            case 3:
                return j==0 ? 0 : -1;
        }
        return 0;
    }

    private static double angel(double x, double y, Circle a, Circle b, Circle c) {
        double at = Math.sqrt(((a.x - x) * (a.x - x)) + ((a.y - y) * (a.y - y))) / a.r;
        double bt = Math.sqrt(((b.x - x) * (b.x - x)) + ((b.y - y) * (b.y - y))) / b.r;
        double ct = Math.sqrt(((c.x - x) * (c.x - x)) + ((c.y - y) * (c.y - y))) / c.r;

        double answer = (at - bt) * (at - bt);
        answer += (bt - ct) * (bt - ct);
        answer += (ct - at) * (ct - at);
        return answer;
    }

    static class Circle {
        int x;
        int y;
        int r;

        Circle(int x, int y, int r) {
            this.x = x;
            this.y = y;
            this.r = r;
        }
    }

    static class Point {
        double x;
        double y;

        Point(double x, double y) {
            this.x = x;
            this.y = y;
        }
    }
}