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

public class CF2C {

	static class Circle {
		double xc, yc, r2;	// (x - xc)^2 + (y - yc)^2 = r^2

		Circle(double x1, double y1, double r1,
				double x2, double y2, double r2) {
			xc = (x1 * r2 * r2 - x2 * r1 * r1) / (r2 * r2 - r1 * r1);
			yc = (y1 * r2 * r2 - y2 * r1 * r1) / (r2 * r2 - r1 * r1);
			this.r2 = xc * xc + yc * yc
				+ (r1 * r1 * (x2 * x2 + y2 * y2)
						- r2 * r2 * (x1 * x1 + y1 * y1))
				/ (r2 * r2 - r1 * r1);
		}

		public String toString() {
			return "(" + xc + " " + yc + " " + Math.sqrt(r2) + ")";
		}
	}

	static class Line {
		double a, b, c;	// ax + by + c = 0

		Line(double x1, double y1, double x2, double y2) {
			a = (x2 - x1) * 2.0;
			b = (y2 - y1) * 2.0;
			c = (x1 * x1 + y1 * y1) - (x2 * x2 + y2 * y2);
		}

		Line(double a, double b, double c) {
			this.a = a;
			this.b = b;
			this.c = c;
		}

		public String toString() {
			return "[" + a + " " + b + " " + c + "]";
		}
	}

	static void intersect(Line l1, Line l2) {
		double x = (l2.c * l1.b - l1.c * l2.b) / (l1.a * l2.b - l2.a * l1.b);
		double y = (l2.c * l1.a - l1.c * l2.a) / (l1.b * l2.a - l2.b * l1.a);

		System.out.format("%.5f %.5f\n", x, y);
	}

	static void intersect(Circle c1, Circle c2) {
		double a = 2.0 * (c1.xc  - c2.xc);
		double b = 2.0 * (c1.yc  - c2.yc);
		double c = (c1.r2 - c2.r2)
			- (c1.xc * c1.xc - c2.xc * c2.xc)
			- (c1.yc * c1.yc - c2.yc * c2.yc);
		Line line = new Line(a, b, c);
		intersect(c1, line);
	}

	static double x0, y0;

	static void intersect(Circle circle, Line line) {
		double x1 = 0.0, y1 = 0.0;
		double x2 = 0.0, y2 = 0.0;
		double xc = circle.xc;
		double yc = circle.yc;
		double r2 = circle.r2;
		double a = line.a;
		double b = line.b;
		double c = line.c;

		if (line.a != 0) {
			double a_ = (b * b) / (a * a) + 1.0;
			double b_ = 2.0 * (b / a) * (c / a + xc) - 2.0 * yc;
			double c_ = (c / a + xc) * (c / a + xc) + yc * yc - r2;

			double delta = b_ * b_ - 4.0 * a_ * c_;
			if (delta < 0.0)
				return;

			y1 = (-b_ + Math.sqrt(delta)) / (2.0 * a_);
			y2 = (-b_ - Math.sqrt(delta)) / (2.0 * a_);
			x1 = -(b * y1 + c) / a;
			x2 = -(b * y2 + c) / a;
		} else {
			double a_ = (a * a) / (b * b) + 1.0;
			double b_ = 2.0 * (a / b) * (c / b + yc) - 2.0 * xc;
			double c_ = (c / b + yc) * (c / b + yc) + xc * xc - r2;

			double delta = b_ * b_ - 4.0 * a_ * c_;
			if (delta < 0.0)
				return;

			x1 = (-b_ + Math.sqrt(delta)) / (2.0 * a_);
			x2 = (-b_ - Math.sqrt(delta)) / (2.0 * a_);
			y1 = -(a * x1 + c) / b;
			y2 = -(a * x2 + c) / b;
		}

		if ((x1 - x0) * (x1 - x0) + (y1 - y0) * (y1 - y0)
				< (x2 - x0) * (x2 - x0) + (y2 - y0) * (y2 - y0))
			System.out.format("%.5f %.5f\n", x1, y1);
		else
			System.out.format("%.5f %.5f\n", x2, y2);
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double x1 = sc.nextDouble();
		double y1 = sc.nextDouble();
		double r1 = sc.nextDouble();
		double x2 = sc.nextDouble();
		double y2 = sc.nextDouble();
		double r2 = sc.nextDouble();
		double x3 = sc.nextDouble();
		double y3 = sc.nextDouble();
		double r3 = sc.nextDouble();

		x0 = x1; y0 = y1;

		if (r1 == r2 && r2 == r3) {
			Line l12 = new Line(x1, y1, x2, y2);
			Line l23 = new Line(x2, y2, x3, y3);
			intersect(l12, l23);
		} else if (r1 != r2 && r2 != r3) {
			Circle c12 = new Circle(x1, y1, r1, x2, y2, r2);
			Circle c23 = new Circle(x2, y2, r2, x3, y3, r3);
			intersect(c12, c23);
		} else if (r1 != r2 && r2 == r3) {
			Circle c12 = new Circle(x1, y1, r1, x2, y2, r2);
			Line l23 = new Line(x2, y2, x3, y3);
			intersect(c12, l23);
		} else if (r1 == r2 && r2 != r3) {
			Line l12 = new Line(x1, y1, x2, y2);
			Circle c23 = new Circle(x2, y2, r2, x3, y3, r3);
			intersect(c23, l12);
		}
	}
}