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

public class C {

	static Scanner in = new Scanner(new BufferedInputStream(System.in));
	static PrintWriter out = new PrintWriter(System.out);

	static class Circle {

		double x, y, r;

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

		LinkedList<Point2D> intersect(Circle circle) {
			double EPS = 1e-9, newX = circle.x - x, newY = circle.y - y,
					a = -2 * newX, b = -2 * newY,
					c = newX * newX + newY * newY + r * r - circle.r * circle.r,
					x0 = -a * c / (a * a + b * b), y0 = -b * c / (a * a + b * b);
			LinkedList<Point2D> points = new LinkedList<Point2D>();

			if (c * c > r * r * (a * a + b * b) + EPS) {
			} else if (Math.abs(c * c - r * r * (a * a + b * b)) < EPS) {
				points.add(new Point2D.Double(x0, y0));
			} else {
				double d = r * r - c * c / (a * a + b * b);
				double mult = Math.sqrt(d / (a * a + b * b));
				double ax, ay, bx, by;
				ax = x0 + b * mult;
				bx = x0 - b * mult;
				ay = y0 - a * mult;
				by = y0 + a * mult;
				points.add(new Point2D.Double(ax, ay));
				points.add(new Point2D.Double(bx, by));
			}

			for (Point2D point : points) {
				point.setLocation(point.getX() + x, point.getY() + y);
			}
			return points;
		}
	}

	public static void main(String[] args) throws IOException {
		//while (true) {
		double[] x = new double[3], y = new double[3], r = new double[3];
		for (int i = 0; i < 3; i++) {
			x[i] = in.nextDouble();
			y[i] = in.nextDouble();
			r[i] = in.nextDouble();
		}

		if (r[0] == r[1] && r[1] == r[2]) {
			if ((x[1] - x[0]) * (y[2] - y[0]) - (x[2] - x[0]) * (y[1] - y[0]) != 0) {
				double a = (y[1] - y[0]) * (x[2] - x[1]),
						b = (y[2] - y[1]) * (x[1] - x[0]),
						c = (x[1] * x[1] - x[0] * x[0] + y[1] * y[1] - y[0] * y[0]) * (x[2] - x[1]),
						d = (x[2] * x[2] - x[1] * x[1] + y[2] * y[2] - y[1] * y[1]) * (x[1] - x[0]),
						y0 = (d - c) / (2 * (b - a)),
						x0 = (x[1] * x[1] - x[0] * x[0] + y[1] * y[1] - y[0] * y[0] - 2 * y0 * (y[1] - y[0])) / (2 * (x[1] - x[0]));
				out.format(Locale.US, "%.5f %.5f%n", x0, y0);
			}
		} else {
			int dif;
			int[] eq = new int[2];
			if (r[0] != r[1] && r[0] != r[2]) {
				dif = 0;
				eq[0] = 1;
				eq[1] = 2;
			} else if (r[1] != r[0] && r[1] != r[2]) {
				eq[0] = 0;
				dif = 1;
				eq[1] = 2;
			} else {
				eq[0] = 0;
				eq[1] = 1;
				dif = 2;
			}

			Circle circles[] = new Circle[2];
			for (int k = 0; k < 2; k++) {
				int j = eq[k], i = dif;
				double d = r[j] * r[j] - r[i] * r[i],
						centerX = (x[i] * r[j] * r[j] - x[j] * r[i] * r[i]) / d,
						centerY = (y[i] * r[j] * r[j] - y[j] * r[i] * r[i]) / d,
						radius = Point2D.distance(x[i], y[i], x[j], y[j]) * r[i] * r[j] / d;
				circles[k] = new Circle(centerX, centerY, radius);
			}

			LinkedList<Point2D> observers = circles[0].intersect(circles[1]);
			if (!observers.isEmpty()) {
				Point2D c = new Point2D.Double(x[0], y[0]),
						a = observers.getFirst(), b = observers.getLast(),
						ans = c.distance(a) < c.distance(b) ? a : b;
				out.format(Locale.US, "%.5f %.5f%n", ans.getX(), ans.getY());
			}
		}
		out.flush();
		//}
	}
}