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.Scanner;

public class Solution {
	
    public static double distance (double x1, double y1, double x2, double y2)
    {
    	return Math.sqrt((x2 - x1)*(x2 - x1) + (y2 - y1) * (y2 - y1));
    }
    
    public static void calculate_line_circle(double a, double b, double c, double x1, double y1, double r, double x_origine, double y_origine)
    {
    	if (b != 0)
    	{
    		double k = -a/b;
    		double kc = -c/b;
    		double A = 1 +k*k;
    		double B = -2*x1 + 2*k*(kc-y1);
    		double C = x1*x1 + (kc-y1)*(kc-y1)-r*r;
    		double delta = B*B-4*A*C;
    		if (delta == 0) 
    		{
    			double x_out = -B/(2*A);
    			double y_out = k*x_out + kc;
    			System.out.println(x_out + " " + y_out);
    		}
    		else if (delta > 0)
    		{
    			double x_out_1 = (-B + Math.sqrt(delta))/(2*A);
    			double y_out_1 = k*(x_out_1) + kc;
    			double x_out_2 = (-B - Math.sqrt(delta))/(2*A);
    			double y_out_2 = k*(x_out_2) + kc;
    			if (distance(x_out_1, y_out_1, x_origine, y_origine) < distance(x_out_2, y_out_2, x_origine, y_origine))
    			{
    				System.out.println(x_out_1 + " " + y_out_1);
    			}
    			else
    			{
    				System.out.println(x_out_2 + " " + y_out_2);
    			}
    		} 
    	}
    	else
    	{
    		double x_out = -c/a;
    		double delta = r*r - (x_out-x1)*(x_out-x1);
    		if(delta == 0)
    		{
    			System.out.println(x_out + " " + y1);
    		}
    		else if (delta > 0)
    		{
    			double y_out_1 = y1 + Math.sqrt(delta);
    			double y_out_2 = y1 - Math.sqrt(delta);
    			
    			if (Math.abs(y_out_1 - y_origine) < Math.abs(y_out_2 - y_origine))
    			{
    				System.out.println(x_out + " " + y_out_1);
    			}
    			else
    			{
    				System.out.println(x_out + " " + y_out_2);
    			}
    		}
    	}
    }

	public static void main(String args[])
	{
		Scanner s = new Scanner(System.in);
		int x1 = s.nextInt();
		int y1 = s.nextInt();
		int r1 = s.nextInt();
		int x2 = s.nextInt();
		int y2 = s.nextInt();
		int r2 = s.nextInt();
		int x3 = s.nextInt();
		int y3 = s.nextInt();
		int r3 = s.nextInt();
		
		//circle 12 parameters
		double x12_inside = 0, y12_inside = 0, x12_outside = 0, y12_outside = 0, x12 = 0, y12 = 0, r12 = 0;
		//line 12 parameters
		double x12_mid = 0, y12_mid = 0, a12 = 0, b12 = 0, c12 = 0;
		//circle 13 parameters
		double x13_inside = 0, y13_inside = 0, x13_outside = 0, y13_outside = 0, x13 = 0, y13 = 0, r13 = 0;
		//line 12 parameters
		double x13_mid = 0, y13_mid = 0, a13 = 0, b13 = 0, c13 = 0;
		
		if (r1 != r2){
			//get circle 1.2
			//(x - x12)^2 + (y - y12)^2 = r12^2
			x12_inside = x1 + r1/((double)r1 + r2)*(x2 - x1);
			y12_inside = y1 + r1/((double)r1 + r2)*(y2 - y1);
			x12_outside = x1 - r1/((double)r2 - r1)*(x2 - x1);
			y12_outside = y1 - r1/((double)r2 - r1)*(y2 - y1);
			
			x12 = 0.5 * (x12_inside + x12_outside);
			y12 = 0.5 * (y12_inside + y12_outside);
			r12 = 0.5 * distance(x12_inside, y12_inside, x12_outside, y12_outside);
		}
		else 
			//a12x + b12y + c12 = 0
		{
			x12_mid = 0.5 *(x1 + x2);
			y12_mid = 0.5 *(y1 + y2);
			a12 = x1 - x2;
			b12 = y1 - y2;
			c12 = -a12 * x12_mid - b12 * y12_mid;
		}
		
		if (r1 != r3){
			//get circle 1.3
			//(x - x13)^2 + (y - y13)^2 = r13^2
			x13_inside = x1 + r1/((double)r1 + r3)*(x3 - x1);
			y13_inside = y1 + r1/((double)r1 + r3)*(y3 - y1);
			x13_outside = x1 - r1/((double)r3 - r1)*(x3 - x1);
			y13_outside = y1 - r1/((double)r3 - r1)*(y3 - y1);
			
			x13 = 0.5 * (x13_inside + x13_outside);
			y13 = 0.5 * (y13_inside + y13_outside);
			r13 = 0.5 * distance(x13_inside, y13_inside, x13_outside, y13_outside);
		}
		else 
			//a13x + b13y + c13 = 0
		{
			x13_mid = 0.5 *(x1 + x3);
			y13_mid = 0.5 *(y1 + y3);
			a13 = x1 - x3;
			b13 = y1 - y3;
			c13 = -a13 * x13_mid - b13 * y13_mid;
		}
		
		//calculate
		//line 12 and line 13
		if(r1 == r2 && r1 == r3)
		{
			double xll = (b12*c13 - c12*b13)/(a12*b13 - a13*b12);
			double yll = (a13*c12 - a12*c13)/(a12*b13 - a13*b12);
			System.out.println(xll + " " + yll);
		}
		
		else if(r1 != r2 && r1 == r3)
		{
			calculate_line_circle(a13, b13, c13, x12, y12, r12, (double)x1, (double)y1);
		}
		
		else if(r1 == r2 && r1!= r3)
		{
			calculate_line_circle(a12, b12, c12, x13, y13, r13, (double)x1, (double)y1);
		}
		
		else
		{
			double A = -2*x12 + 2*x13;
			double B = -2*y12 + 2*y13;
			double C = x12*x12 -x13*x13 + y12*y12 -y13*y13 - r12*r12 +r13*r13;
			calculate_line_circle(A, B, C, x12, y12, r12, (double)x1, (double)y1);
		}
	}
}