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

Solution:
from math import sqrt, inf

eps = 1e-8

def find_ll(A1, B1, C1, A2, B2, C2):
    #print(A1, B1, C1, A2, B2, C2)
    if abs(A2*B1-A1*B2) > eps:
        return ( (B2*C1-B1*C2)/(A2*B1-A1*B2), -(A2*C1-A1*C2)/(A2*B1-A1*B2) )
    else:
        return (inf, inf)

def find_lc(A, B, C, X, Y, R2):
    #print(A, B, C, X, Y, R2)
    pp = find_ll(A, B, C, -B, A, B*X-A*Y)
    #print(pp)
    h = sqrt((pp[0]-X)**2 + (pp[1]-Y)**2)
    if sqrt(R2) >= h:
        d = sqrt(R2-h*h)
        x1 = pp[0] - d/sqrt(A**2+B**2)*(-B)
        y1 = pp[1] - d/sqrt(A**2+B**2)*(+A)
        x2 = pp[0] + d/sqrt(A**2+B**2)*(-B)
        y2 = pp[1] + d/sqrt(A**2+B**2)*(+A)
        #print(x1, y1)
        #print(x2, y2)
        return (x1, y1), (x2, y2)
    else:
        return (inf, inf), (inf, inf)


def find_cc(X1, Y1, R12, X2, Y2, R22):
    #print(X1, Y1, R12)
    #print(X2, Y2, R22)
    d = sqrt((X1-X2)**2 + (Y1-Y2)**2)
    a = (R12 - R22 + d**2)/(2*d)
    #print(sqrt(R12), d, a)
    X3 = X1 + a/d * (X2-X1)
    Y3 = Y1 + a/d * (Y2-Y1)
    if sqrt(R12) >= a:
        h = sqrt(R12-a**2)
        X4 = X3 + h/d * (Y2-Y1)
        Y4 = Y3 - h/d * (X2-X1)
        X5 = X3 - h/d * (Y2-Y1)
        Y5 = Y3 + h/d * (X2-X1)
        #print(X4, Y4)
        #print(X5, Y5)
        return (X4, Y4), (X5, Y5)
    else:
        return (inf, inf), (inf, inf)

x1, y1, r1 = map(float, input().split(' '))
x2, y2, r2 = map(float, input().split(' '))
x3, y3, r3 = map(float, input().split(' '))

A1 = (r2/r1)**2-1
B1x = -2*x1*((r2/r1)**2)+2*x2
B1y = -2*y1*((r2/r1)**2)+2*y2
C1 = ((r2/r1)**2)*(x1**2 + y1**2)-(x2**2 + y2**2)
#print(A1, B1x, B1y, C1)
#print(C2/A2)
if abs(A1) > eps:
    O1x = -B1x/(2*A1)
    O1y = -B1y/(2*A1)
    R12 = -(C1/A1 - O1x**2 - O1y**2)

A2 = (r3/r1)**2-1
B2x = -2*x1*((r3/r1)**2)+2*x3
B2y = -2*y1*((r3/r1)**2)+2*y3
C2 = ((r3/r1)**2)*(x1**2 + y1**2)-(x3**2 + y3**2)
#print(A2, B2x, B2y, C2)
#print(C2/A2)
if abs(A2) > eps:
    O2x = -B2x/(2*A2)
    O2y = -B2y/(2*A2)
    R22 = -(C2/A2 - O2x**2 - O2y**2)

if abs(A1) < eps and abs(A2) < eps:
    sol = find_ll(B1x, B1y, C1, B2x, B2y, C2)
    if sol[0] != inf:
        print("%.5f %.5f" % (sol[0], sol[1]))
elif abs(A1) >= eps and abs(A2) < eps:
    sol1, sol2 = find_lc(B2x, B2y, C2, O1x, O1y, R12)
    if sol1[0] != inf:
        dist1 = (sol1[0] - x1)**2 + (sol1[1] - y1)**2
        dist2 = (sol2[0] - x1)**2 + (sol2[1] - y1)**2
        if dist1 < dist2:
            print("%.5f %.5f" % (sol1[0], sol1[1]))
        else:
            print("%.5f %.5f" % (sol2[0], sol2[1]))
elif abs(A1) < eps and abs(A2) >= eps:
    sol1, sol2 = find_lc(B1x, B1y, C1, O2x, O2y, R22)
    if sol1[0] != inf:
        dist1 = (sol1[0] - x1)**2 + (sol1[1] - y1)**2
        dist2 = (sol2[0] - x1)**2 + (sol2[1] - y1)**2
        if dist1 < dist2:
            print("%.5f %.5f" % (sol1[0], sol1[1]))
        else:
            print("%.5f %.5f" % (sol2[0], sol2[1]))
elif abs(A1) >= eps and abs(A2) >= eps:
    sol1, sol2 = find_cc(O1x, O1y, R12, O2x, O2y, R22)
    if sol1[0] != inf:
        dist1 = (sol1[0] - x1)**2 + (sol1[1] - y1)**2
        dist2 = (sol2[0] - x1)**2 + (sol2[1] - y1)**2
        if dist1 < dist2:
            print("%.5f %.5f" % (sol1[0], sol1[1]))
        else:
            print("%.5f %.5f" % (sol2[0], sol2[1]))