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

public class Main {
		
	public static void main(String[] args) throws java.lang.Exception {
		BufferedReader kek = new BufferedReader(new InputStreamReader(System.in));
		//Scanner skek = new Scanner(System.in);
		PrintWriter outkek = new PrintWriter(System.out);

		int[] xArr = new int[3], yArr = new int[3], rArr = new int[3];
		for(int i = 0; i < 3; i++){
			String[] input = kek.readLine().split(" ");
			xArr[i] = Integer.parseInt(input[0]);
			yArr[i] = Integer.parseInt(input[1]);
			rArr[i] = Integer.parseInt(input[2]);
		}
		
		double midX = mid(xArr), midY = mid(yArr);
		
		double adjust = 0.75;
		double[][] unit = {{-1,0}, {0,1}, {1,0}, {0,-1}};
		
		double tempmx = midX, tempmy = midY, s = 1.0;
		double error = findError(midX, midY, xArr, yArr, rArr);
		
		boolean flag = false;
		int limit = 0;

		while(error > 0.000001 && limit <= 10000){
			flag = false;
			for(int i = 0; i < unit.length; i++){
				tempmx = midX + s * unit[i][0];
				tempmy = midY + s * unit[i][1];
				double tempE = findError(tempmx, tempmy, xArr, yArr, rArr);
				if(error > tempE){
					error = tempE;
					midX = tempmx;
					midY = tempmy;
					flag = true;
				}
			}
			
			if(flag == false){
				s *= adjust;
			}
			limit++;
		}
		
		if(findError(midX, midY, xArr, yArr, rArr) <= 0.000001){
			outkek.println(midX + " " + midY);
		}
		
		
		kek.close();
		outkek.close();
	}	
	
	static double findDist(double X1, double Y1, double X2, double Y2){
		return Math.hypot((X1 - X2), (Y1 - Y2));
	}
	
	static double mid(int[] arr){
		double res = 0.0;
		for(int i : arr){
			res += i / 3;
		}
		
		return res;
	}
	
	static double findError(double X, double Y, int[] xArr, int[] yArr, int[] rArr){
		double res = 0.0;
		double result = 0.0;
		double dr1 = findDist(X, Y, xArr[0], yArr[0]) / rArr[0];
		double dr2 = findDist(X, Y, xArr[1], yArr[1]) / rArr[1];
		double dr3 = findDist(X, Y, xArr[2], yArr[2]) / rArr[2];
		
		res = dr1 - dr2;
		result += res * res;
		res = dr2 - dr3;
		result += res * res;
		res = dr3 - dr1;
		result += res * res;
		
		return result;
	}
	
}