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 PYTHON):

Solution:
from math import sqrt

def solve(a,b,c):
    if a == 0:
        if b != 0.0:
            return [-c/b]
        else:
            return []            
    else:
        if c != 0.0:
            d = b*b-4.0*a*c
            if d >= 0.0:
                return [(-b-sqrt(d))/2.0/a,(-b+sqrt(d))/2.0/a]
            else:
                return []
        else:
            return [0,-b/a]

((x1,y1,r1),(x2,y2,r2),(x3,y3,r3)) = [map(lambda x: float(x),raw_input().split()),
                                      map(lambda x: float(x),raw_input().split()),
                                      map(lambda x: float(x),raw_input().split())]

a1 = r2*r2*x1*x1 + r2*r2*y1*y1 - r1*r1*x2*x2 - r1*r1*y2*y2
b1 = 2.0*r1*r1*x2 - 2.0*r2*r2*x1
c1 = 2.0*r1*r1*y2 - 2.0*r2*r2*y1
d1 = r2*r2 - r1*r1

a2 = r2*r2*x3*x3 + r2*r2*y3*y3 - r3*r3*x2*x2 - r3*r3*y2*y2
b2 = 2.0*r3*r3*x2 - 2.0*r2*r2*x3
c2 = 2.0*r3*r3*y2 - 2.0*r2*r2*y3
d2 = r2*r2 - r3*r3

p = []


if b1 == 0.0 :
    if d1 == 0.0:
        if c1 != 0.0:
            y = -a1/c1
            for x in solve(d2, b2, a2+c2*y+d2*y*y):
                p.append([x,y])
    elif d2 == 0.0:
        if b2 == 0.0:
            if c2 != 0.0:
                y = -a2/c2
                for x in solve(d1, 0.0, a1+c1*y+d1*y*y):
                    p.append([x,y])    
        else:
            for y in solve(d1+d1*c2*c2/b2/b2, c1+2.0*c2*a2/b2/b2, a1+a2*a2/b2/b2):
                p.append([(-c2*y-a2)/b2,y])        
    elif b2 == 0.0:
        if c1*d2 != c2*d2:
            y = (a2*d1-a1*d2)/(c1*d2-c2*d1)
            for x in solve(d1, 0.0, a1+c1*y+d1*y*y):
                p.append([x,y])
    else:
        y = (a2*d1-a1*d2)/(c1*d2-c2*d1)
        p.append([(c1*d2-c2*d1)*y/b2/d2 + (s1*d2-a2*d1)/b2/d2,y])        
else:
    if b2 == 0.0:
        if d2 == 0.0:
            if c2 != 0.0:
                y = -a2/c2
                for x in solve(d1, b1, a1+c1*y+d1*y*y):
                    p.append([x,y])
        elif d1 == 0.0:
            for y in solve(d2+d2*c1*c1/b1/b1, c2+2.0*c1*a1/b1/b1, a2+a1*a1/b1/b1):
                p.append([(-c1*y-a1)/b1,y])
        else:
            if c1*d2 != c2*d1:
                C = a2 + (a2*d1-a1*d2)*(a2*d1-a1*d2)/b1/b1/d2
                B = c2 + 2.0*(a2*d1-a1*d2)*(c2*d1-c1*d2)/b1/b1/d2
                A = d2 + (c2*d1-c1*d2)*(c2*d1-c1*d2)/b1/b1/d2
                for y in solve(A,B,C):
                    p.append([(c2*d1-c1*d2)*y/b1/d2+(a2*d1-a1*d2)/b1/d2,y])
            else:
                x = (a2*d1-a1*d2)/b1/d2
                for y in solve(d2, c2, a2+b1*x+d2*x*x):
                    p.append([x,y])                
    elif d1 == 0.0:
        for y in solve(d2+d2*c1*c1/b1/b1, c2+2.0*d2*c1*a1/b1/b1-b2*c1/b1, a2+d2*a1*a1/b1/b1-b2*a1/b1):
                p.append([(-c1*y-a1)/b1,y])
    elif d2 == 0.0:        
        for y in solve(d1+d1*c2*c2/b2/b2, c1+2.0*d1*c2*a2/b2/b2-b1*c2/b2, a1+d1*a2*a2/b2/b2-b1*a2/b2):
            p.append([(-c2*y-a2)/b2,y])    
    else:    
        if b2*d1 != b1*d2:
            C = a1 + b1*(a1*d2-a2*d1)/(b2*d1-b1*d2) + d1*(a1*d2-a2*d1)*(a1*d2-a2*d1)/(b2*d1-b1*d2)/(b2*d1-b1*d2)    
            B = c1 + b1*(c1*d2-c2*d1)/(b2*d1-b1*d2) + d1*2.0*(a1*d2-a2*d1)*(c1*d2-c2*d1)/(b2*d1-b1*d2)/(b2*d1-b1*d2)    
            A = d1 + d1*(c1*d2-c2*d1)*(c1*d2-c2*d1)/(b2*d1-b1*d2)/(b2*d1-b1*d2)
            for y in solve(A,B,C):
                p.append([((d1*d2-d2*d1)*y*y + (c1*d2-c2*d1)*y + (a1*d2-a2*d1))/(b2*d1-b1*d2),y])    
        else:
            if c1*d2 != c2*d1:
                y = (a2*d1-a1*d2)/(c1*d2-c2*d1)            
                for x in solve(d1,b1,a1+c1*y+d1*y*y):
                    p.append([x,y])

if len(p) > 1:
    l1 = (p[0][0] - x1)*(p[0][0] - x1) + (p[0][1] - y1)*(p[0][1] - y1)
    l2 = (p[1][0] - x1)*(p[1][0] - x1) + (p[1][1] - y1)*(p[1][1] - y1)
    if l1 < l2:
        print '%f %f'%(p[0][0],p[0][1])
    else:
        print '%f %f'%(p[1][0],p[1][1])
elif len(p) == 1:
    print '%f %f'%(p[0][0],p[0][1])