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

public class C2 {
	public int[][] circle;
	public double[][] dir = {{1.0, 0.0}, {0.0, 1.0}, {0.0, -1.0}, {-1.0, 0.0}};
	public double ESP = 1e-9;
	
	public double getDif(double x, double y){
		double[] sec = new double[3];
		for(int i = 0; i < 3; i++){
			double a = (circle[i][0]-x)*(circle[i][0]-x) + (circle[i][1]-y)*(circle[i][1]-y);
			sec[i] = Math.sqrt(a)/circle[i][2];
		}
		double ret = 0;
		for(int i = 0; i < 3; i++){
			ret += (sec[i]-sec[(i+1)%3])*(sec[i]-sec[(i+1)%3]);
		}
		return ret;
	}
	public void solve() throws IOException {
		circle = new int[3][3];
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 3; j++){
				circle[i][j] = nextInt();
			}
		}
		double[] p = new double[2];
		for(int i = 0; i < 3; i++){
			p[0] += circle[i][0];
			p[1] += circle[i][1];
		}
		p[0] /= 3;
		p[1] /= 3;
		double d = 10.0;
		double delta = 0.5;
		while( d > ESP ){
			double key = getDif(p[0], p[1]);
			boolean flag = false;
			for(int i = 0; i < dir.length; i++){
				if( getDif(p[0]+d*dir[i][0], p[1]+d*dir[i][1]) < key ){
					p[0] += d*dir[i][0];
					p[1] += d*dir[i][1];
					flag = true;
					break;
				}
			}
			if( !flag ){
				d *= delta;
			}
		}
		if( getDif(p[0], p[1]) < ESP ){
			writer.println(p[0] + " " + p[1]);
		}
	}
	public static void main(String[] args) throws IOException {
		new C2().run();
	}
	
	BufferedReader reader;
	StringTokenizer tokenizer;
	PrintWriter writer;
	
	public void run() throws IOException {
		try{
			reader = new BufferedReader(new InputStreamReader(System.in));
			tokenizer = null;
			writer = new PrintWriter(System.out);
			solve();			
		} catch(Exception e){
			e.printStackTrace();
		} finally {
			reader.close();
			writer.close();
		}
	}
	public int nextInt() throws IOException {
		return Integer.parseInt(nextToken());
	}
	public String nextToken() throws IOException {
		while( tokenizer == null || !tokenizer.hasMoreTokens() ){
			tokenizer = new StringTokenizer(reader.readLine());
		}
		return tokenizer.nextToken();
	}
	
}