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.*;
import java.io.*;

public class Contest2_C {

	static double[][] stadiums;
	
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub

		BufferedReader kb = new BufferedReader(new InputStreamReader(System.in));
		stadiums = new double[3][3];
		StringTokenizer st;
		for (int j = 0; j < 3; j++) {
			st = new StringTokenizer(kb.readLine());
			for (int k = 0; k < 3; k++)
				stadiums[j][k] = Integer.parseInt(st.nextToken());
			stadiums[j][2] = (int) Math.pow(stadiums[j][2], 2);
		}
		boolean first = false; // true = line, false = circle
		double firstX = 0.0, firstY = 0.0, firstR = 0.0;
		if (stadiums[0][2] == stadiums[1][2]) {
			first = true;
			firstX = 2 * (stadiums[0][0] - stadiums[1][0]);
			firstY = 2 * (stadiums[0][1] - stadiums[1][1]);
			firstR = Math.pow(stadiums[0][0], 2) + Math.pow(stadiums[0][1], 2) - Math.pow(stadiums[1][0], 2) - Math.pow(stadiums[1][1], 2);
		}
		else {
			firstX = (stadiums[1][2] * stadiums[0][0] - stadiums[0][2] * stadiums[1][0]) / (stadiums[1][2] - stadiums[0][2]);
			firstY = (stadiums[1][2] * stadiums[0][1] - stadiums[0][2] * stadiums[1][1]) / (stadiums[1][2] - stadiums[0][2]);
			firstR = stadiums[0][2] * Math.pow(stadiums[1][0], 2) + stadiums[0][2] * Math.pow(stadiums[1][1], 2)
					- stadiums[1][2] * Math.pow(stadiums[0][0], 2) - stadiums[1][2] * Math.pow(stadiums[0][1], 2);
			firstR /= (stadiums[1][2] - stadiums[0][2]);
			firstR += Math.pow(firstX, 2) + Math.pow(firstY, 2);
		}
		boolean second = false;
		double secondX = 0.0, secondY = 0.0, secondR = 0.0;
		if (stadiums[1][2] == stadiums[2][2]) {
			second = true;
			secondX = 2 * (stadiums[1][0] - stadiums[2][0]);
			secondY = 2 * (stadiums[1][1] - stadiums[2][1]);
			secondR = Math.pow(stadiums[1][0], 2) + Math.pow(stadiums[1][1], 2) - Math.pow(stadiums[2][0], 2) - Math.pow(stadiums[2][1], 2);
		}
		else {
			secondX = (stadiums[2][2] * stadiums[1][0] - stadiums[1][2] * stadiums[2][0]) / (stadiums[2][2] - stadiums[1][2]);
			secondY = (stadiums[2][2] * stadiums[1][1] - stadiums[1][2] * stadiums[2][1]) / (stadiums[2][2] - stadiums[1][2]);
			secondR = stadiums[1][2] * Math.pow(stadiums[2][0], 2) + stadiums[1][2] * Math.pow(stadiums[2][1], 2)
					- stadiums[2][2] * Math.pow(stadiums[1][0], 2) - stadiums[2][2] * Math.pow(stadiums[1][1], 2);
			secondR /= (stadiums[2][2] - stadiums[1][2]);
			secondR += Math.pow(secondX, 2) + Math.pow(secondY, 2);
		}
		if (first && second) {
			double denom = secondY * firstX - secondX * firstY;
			if (Math.abs(denom) < 0.0000001)
				return;
			double x = secondY * firstR - firstY * secondR;
			x /= denom;
			double y = secondX * firstR - firstX * secondR;
			y /= denom;
			System.out.printf("%.5f %.5f%n", x, y);
		}
		else if (first ^ second) {
			if (first)
				lineAndCircle(firstX, firstY, firstR, secondX, secondY, secondR);
			else 
				lineAndCircle(secondX, secondY, secondR, firstX, firstY, firstR);
		}
		else
			lineAndCircle(2 * firstX - 2 * secondX, 2 * firstY - 2 * secondY,
					secondR - firstR + firstX * firstX - secondX * secondX + firstY * firstY - secondY * secondY,
					firstX, firstY, firstR);
	}
	
	public static void lineAndCircle(double a, double b, double c, double circleX, double circleY, double r2) {
		double y = 2 * b * circleX / a - 2 * circleY - 2 * b * c / a / a;
		y = Math.pow(y, 2);
		y -= 4 * (b * b / a / a + 1) * (c * c / a / a - 2 * c / a * circleX  + circleX * circleX + circleY * circleY - r2);
		y = Math.sqrt(y);
		if (Double.isNaN(y))
			return;
		double y1 = 2 * circleY + 2 * b * c / a / a - 2 * b * circleX  / a + y;
		double y2 = y1 - 2 * y;
		y1 /= 2 * (b * b / a / a + 1);
		y2 /= 2 * (b * b / a / a + 1);
		double x1 = (c - b * y1) / a;
		double x2 = (c - b * y2) / a;
		double d1 = Math.pow(x1 - stadiums[0][0], 2) + Math.pow(y1 - stadiums[0][1], 2);
		double d2 = Math.pow(x2 - stadiums[0][0], 2) + Math.pow(y2 - stadiums[0][1], 2);
		if (d1 < d2)
			System.out.printf("%.5f %.5f%n", x1, y1);
		else
			System.out.printf("%.5f %.5f%n", x2, y2);
	}
}