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

public class Problem2C {

	private static final double EPSILON = 1e-4;

	private static void getCircleProps(int X0, int Y0, int r0, int X1, int Y1,
			int r1, long[] a, long[] b, long[] c, long[] d, int index) {
		a[index] = r1 * r1 - r0 * r0;
		b[index] = 2 * (X0 * r1 * r1 - X1 * r0 * r0);
		c[index] = 2 * (Y0 * r1 * r1 - Y1 * r0 * r0);
		d[index] = X0 * X0 * r1 * r1 + Y0 * Y0 * r1 * r1 - X1 * X1 * r0 * r0
				- Y1 * Y1 * r0 * r0;
	}

	private static String format(double val) {
		return String.format("%.5f", val);
	}

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int X[] = new int[3], Y[] = new int[3], r[] = new int[3];
		long a[] = new long[2], b[] = new long[2], c[] = new long[2], d[] = new long[2];
		double m, n, p, q, s, temp, distance1, distance2;
		double px[] = new double[2], py[] = new double[2];

		StringTokenizer st = new StringTokenizer(br.readLine());
		X[0] = Integer.parseInt(st.nextToken());
		Y[0] = Integer.parseInt(st.nextToken());
		r[0] = Integer.parseInt(st.nextToken());

		st = new StringTokenizer(br.readLine());
		X[1] = Integer.parseInt(st.nextToken());
		Y[1] = Integer.parseInt(st.nextToken());
		r[1] = Integer.parseInt(st.nextToken());

		st = new StringTokenizer(br.readLine());
		X[2] = Integer.parseInt(st.nextToken());
		Y[2] = Integer.parseInt(st.nextToken());
		r[2] = Integer.parseInt(st.nextToken());

		getCircleProps(X[0], Y[0], r[0], X[1], Y[1], r[1], a, b, c, d, 0);
		getCircleProps(X[1], Y[1], r[1], X[2], Y[2], r[2], a, b, c, d, 1);

		if (a[0] == 0 && a[1] == 0) {
			temp = (double) (b[1] * c[0] - b[0] * c[1]);
			if (temp == 0)
				System.out.println();
			else {
				py[0] = (b[1] * d[0] - b[0] * d[1]) / temp;
				px[0] = (d[0] - c[0] * py[0]) / (double) b[0];
				if (Math.abs(py[0]) < EPSILON)
					py[0] = 0.0;
				if (Math.abs(px[0]) < EPSILON)
					px[0] = 0.0;
				System.out.println(format(px[0]) + " " + format(py[0]));
			}
			System.exit(0);
		}

		if ((a[0] * b[1] - a[1] * b[0]) == 0) {
			py[0] = (a[1] * d[0] - a[0] * d[1])
					/ (double) (a[1] * c[0] - a[0] * c[1]);
			if (a[0] != 0) {
				s = 4 * a[0] * (a[0] * py[0] * py[0] - c[0] * py[0] + d[0]);
				if (b[0] * b[0] < s) {
					System.out.println();
					System.exit(0);
				}
				px[0] = (b[0] + Math.sqrt(b[0] * b[0] - s))
						/ (double) (2.0 * a[0]);
				px[1] = (b[0] - Math.sqrt(b[0] * b[0] - s))
						/ (double) (2.0 * a[0]);
			} else {
				s = 4 * a[1] * (a[1] * py[0] * py[0] - c[1] * py[0] + d[1]);
				if (b[1] * b[1] < s) {
					System.out.println();
					System.exit(0);
				}
				px[0] = (b[1] + Math.sqrt(b[1] * b[1] - s))
						/ (double) (2.0 * a[1]);
				px[1] = (b[1] - Math.sqrt(b[1] * b[1] - s))
						/ (double) (2.0 * a[1]);
			}
			py[1] = py[0];
		} else {
			m = (a[1] * c[0] - a[0] * c[1])
					/ (double) (a[0] * b[1] - a[1] * b[0]);
			n = (a[1] * d[0] - a[0] * d[1])
					/ (double) (a[0] * b[1] - a[1] * b[0]);

			if (a[0] != 0) {
				p = a[0] * m * m + a[0];
				q = 2 * m * n * a[0] + b[0] * m + c[0];
				s = a[0] * n * n + b[0] * n + d[0];
			} else {
				p = a[1] * m * m + a[1];
				q = 2 * m * n * a[1] + b[1] * m + c[1];
				s = a[1] * n * n + b[1] * n + d[1];
			}
			temp = q * q - 4 * p * s;

			if (temp < 0) {
				System.out.println();
				System.exit(0);
			}

			py[0] = (q + Math.sqrt(temp)) / (2 * p);
			px[0] = m * py[0] - n;
			py[1] = (q - Math.sqrt(temp)) / (2 * p);
			px[1] = m * py[1] - n;

		}

		distance1 = (px[0] - X[0]) * (px[0] - X[0]) + (py[0] - Y[0])
				* (py[0] - Y[0]);
		distance2 = (px[1] - X[0]) * (px[1] - X[0]) + (py[1] - Y[0])
				* (py[1] - Y[0]);

		if (Math.abs(px[0]) < EPSILON)
			px[0] = 0.0;
		if (Math.abs(py[0]) < EPSILON)
			py[0] = 0.0;
		if (Math.abs(px[1]) < EPSILON)
			px[1] = 0.0;
		if (Math.abs(py[1]) < EPSILON)
			py[1] = 0.0;

		if (((r[0] * r[0]) / distance1) >= ((r[0] * r[0]) / distance2))
			System.out.println(format(px[0]) + " " + format(py[0]));
		else
			System.out.println(format(px[1]) + " " + format(py[1]));

	}
}