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

public class CF2C {
    static class Point {
        int x;
        int y;
        int r;

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

        public static double getD(Point p1, double x, double y) {
            return Math.sqrt(Math.pow((p1.x - x), 2) + Math.pow((p1.y - y), 2));
        }
    }

    public static void main(String[] args) {
        solve(new Point(IN.nextInt(), IN.nextInt(), IN.nextInt()), new Point(IN.nextInt(), IN.nextInt(), IN.nextInt()),
                new Point(IN.nextInt(), IN.nextInt(), IN.nextInt()));
    }

    private static void solve(Point p1, Point p2, Point p3) {
        double curx = (p1.x + p2.x + p3.x) / 3d;
        double cury = (p1.y + p2.y + p3.y) / 3d;
        double eps = 1e-12;
        double delta = eval(curx, cury, p1, p2, p3);
        int dir[][] = new int[][] { { 1, 0 }, { -1, 0 }, { 0, 1 }, { 0, -1 } };
        double step = 1d, k = 0.98;
        int n = 100;
        while (delta > eps) {
            int nxtd = -1;
            for (int i = 0; i < 4; i++) {
                int tmp[] = dir[i];
                double d = eval(curx + tmp[0] * step, cury + tmp[1] * step, p1, p2, p3);
                if (d < delta) {
                    delta = d;
                    nxtd = i;
                }
            }
            if (nxtd == -1) {
                step *= k;
                if (--n == 0) {
                    System.out.println("");
                    System.exit(0);
                }
            } else {
                n = 100;
                curx += dir[nxtd][0] * step;
                cury += dir[nxtd][1] * step;
            }

        }
        PrintWriter pr = new PrintWriter(System.out);
        pr.printf("%.5f %.5f", curx, cury);
        pr.flush();
    }

    private static double eval(double x, double y, Point... ps) {
        double d1 = Point.getD(ps[0], x, y);
        double d2 = Point.getD(ps[1], x, y);
        double d3 = Point.getD(ps[2], x, y);
        double v1 = d1 / ps[0].r, v2 = d2 / ps[1].r, v3 = d3 / ps[2].r;
        double res = Math.pow(v2 - v1, 2) + Math.pow(v3 - v2, 2) + Math.pow(v1 - v3, 2);
        return res;
    }

    static final class IN {

        private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        private static StringTokenizer st = null;

        public static String readLine() throws IOException {
            return br.readLine();
        }

        public static String next() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (Exception e) {
                    break;
                }
            }
            return st.nextToken();
        }

        public static int nextInt() {
            return Integer.valueOf(next());
        }

        public static long nextLong() {
            return Long.valueOf(next());
        }

        public static void close() throws IOException {
            br.close();
        }
    }
}