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 Codeforces2C {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		final double a  = sc.nextDouble();
		final double b  = sc.nextDouble();
		final double r1 = sc.nextDouble();
		final double c  = sc.nextDouble();
		final double d  = sc.nextDouble();
		final double r2 = sc.nextDouble();
		final double e  = sc.nextDouble();
		final double f  = sc.nextDouble();
		final double r3 = sc.nextDouble();
		sc.close();
		if(r1==r2 && r2==r3){
			//Ax+By+C=0
			double A = a-c;
			double B = b-d;
			double C = (d*d+c*c-b*b-a*a)/2;
			//Dx+Ey+F=0
			double D = c-e;
			double E = d-f;
			double F = (f*f+e*e-d*d-c*c)/2;
			if(B*D!=A*E){
				System.out.println((C*E-B*F)/(B*D-A*E));
				System.out.println((A*F-C*D)/(B*D-A*E));
			}
		}else if(r1==r2){
			//Ax+By+C=0
			double A = a-c;
			double B = b-d;
			double C = (d*d+c*c-b*b-a*a)/2;
			//x^2+y^2+Dx+Ey+F=0
			double D = 2*e*r2*r2-2*c*r3*r3;
			double E = 2*f*r2*r2-2*d*r3*r3;
			double F = r3*r3*(c*c+d*d)-r2*r2*(e*e+f*f);
			D /= r3*r3-r2*r2;
			E /= r3*r3-r2*r2;
			F /= r3*r3-r2*r2;
			if(B==0){
				double x = -C/A;
				//Ax^2+Bx+C=0
				A = 1;
				B = E;
				C = x*x+D*x+F;
				if(B*B-4*A*C>=0){
					double y1 =(Math.sqrt(B*B-4*A*C)-B)/(2*A);
					double y2 =(-Math.sqrt(B*B-4*A*C)-B)/(2*A);
					if((y1-f)*(y1-f) < (y2-f)*(y2-f)){
						System.out.println(x);
						System.out.println(y1);
					}else{
						System.out.println(x);
						System.out.println(y2);
					}
				}
			}else{
				//y=Mx+Const
				double M = -A/B;
				double Const = -C/B;
				//Ax^2+Bx+C=0
				A = M*M+1;
				B = 2*M*Const+D+E*M;
				C = Const*Const+E*Const+F;
				if(B*B-4*A*C>=0){
					double x1 =(Math.sqrt(B*B-4*A*C)-B)/(2*A);
					double x2 =(-Math.sqrt(B*B-4*A*C)-B)/(2*A);
					double y1 = M*x1+Const;
					double y2 = M*x2+Const;
					if((x1-e)*(x1-e)+(y1-f)*(y1-f) < (x2-e)*(x2-e)+(y2-f)*(y2-f)){
						System.out.println(x1);
						System.out.println(y1);
					}else{
						System.out.println(x2);
						System.out.println(y2);
					}
				}
			}
		}else if(r2==r3){
			//x^2+y^2+Ax+By+C=0
			double A = 2*c*r1*r1-2*a*r2*r2;
			double B = 2*d*r1*r1-2*b*r2*r2;
			double C = r2*r2*(a*a+b*b)-r1*r1*(c*c+d*d);
			A /= r2*r2-r1*r1;
			B /= r2*r2-r1*r1;
			C /= r2*r2-r1*r1;
			//Dx+Ey+F=0
			double D = c-e;
			double E = d-f;
			double F = (f*f+e*e-d*d-c*c)/2;
			if(E==0){
				double x = -F/D;
				//Ax^2+Bx+C=0
				A = 1;
				B = B;
				C = x*x+A*x+C;
				if(B*B-4*A*C>=0){
					double y1 =(Math.sqrt(B*B-4*A*C)-B)/(2*A);
					double y2 =(-Math.sqrt(B*B-4*A*C)-B)/(2*A);
					if((y1-b)*(y1-b) < (y2-b)*(y2-b)){
						System.out.println(x);
						System.out.println(y1);
					}else{
						System.out.println(x);
						System.out.println(y2);
					}
				}
			}else{
				//y=mx+Const
				double m = -D/E;
				double Const = -F/E;
				//Ax^2+Bx+C=0
				A = m*m+1;
				B = 2*m*Const+A+B*m;
				C = Const*Const+B*Const+C;
				if(B*B-4*A*C>=0){
					double x1 =(Math.sqrt(B*B-4*A*C)-B)/(2*A);
					double x2 =(-Math.sqrt(B*B-4*A*C)-B)/(2*A);
					double y1 = m*x1+Const;
					double y2 = m*x2+Const;
					if((x1-a)*(x1-a)+(y1-b)*(y1-b) < (x2-a)*(x2-a)+(y2-b)*(y2-b)){
						System.out.println(x1);
						System.out.println(y1);
					}else{
						System.out.println(x2);
						System.out.println(y2);
					}
				}
			}
		}else{
			//x^2+y^2+Ax+By+C=0
			double A = 2*c*r1*r1-2*a*r2*r2;
			double B = 2*d*r1*r1-2*b*r2*r2;
			double C = r2*r2*(a*a+b*b)-r1*r1*(c*c+d*d);
			A /= r2*r2-r1*r1;
			B /= r2*r2-r1*r1;
			C /= r2*r2-r1*r1;
			//x^2+y^2+Dx+Ey+F=0
			double D = 2*e*r2*r2-2*c*r3*r3;
			double E = 2*f*r2*r2-2*d*r3*r3;
			double F = r3*r3*(c*c+d*d)-r2*r2*(e*e+f*f);
			D /= r3*r3-r2*r2;
			E /= r3*r3-r2*r2;
			F /= r3*r3-r2*r2;
			if(E==B){
				double x = (C-F)/(D-A);
				A = 1;
				B = B;
				C = x*x + A*x + C;
				if(B*B-4*A*C>=0){
					double y1 =(Math.sqrt(B*B-4*A*C)-B)/(2*A);
					double y2 =(-Math.sqrt(B*B-4*A*C)-B)/(2*A);
					if((y1-b)*(y1-b) < (y2-b)*(y2-b)){
						System.out.println(x);
						System.out.println(y1);
					}else{
						System.out.println(x);
						System.out.println(y2);
					}
				}
			}else{
				//y=Mx+C
				double M = (A-D)/(E-B);
				double Const = (C-F)/(E-B);
				//ax^2+bx+c=0
				A = M*M+1;
				B = 2*M*Const+D+E*M;
				C = Const*Const+E*Const+F;
				if(B*B-4*A*C>=0){
					double x1 =(Math.sqrt(B*B-4*A*C)-B)/(2*A);
					double x2 =(-Math.sqrt(B*B-4*A*C)-B)/(2*A);
					double y1 = M*x1+Const;
					double y2 = M*x2+Const;
					if((x1-a)*(x1-a)+(y1-b)*(y1-b) < (x2-a)*(x2-a)+(y2-b)*(y2-b)){
						System.out.println(x1);
						System.out.println(y1);
					}else{
						System.out.println(x2);
						System.out.println(y2);
					}
				}
			}
		}
	}
}