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:
import sys, math

# Gives the circle ((x,y),radius) that contains all points p such that
#  (p-p1)/(p-p2) = r.
def apollonian_circle(p1,p2,r):
    dx = p2[0] - p1[0]
    x = p1[0] + (((r/(1+r)) + (r/(r-1)))/2) * dx
    dy = p2[1] - p1[1]
    y = p1[1] + (((r/(1+r)) + (r/(r-1)))/2) * dy
    x_ = p1[0] + (r/(1+r)) * dx
    y_ = p1[1] + (r/(1+r)) * dy
    return ((x,y),math.sqrt(math.pow(x-x_,2)+math.pow(y-y_,2)))

# Find the points of intersection of circles with centers p1,p2 and radii
#  r1, r2, respectively
def circle_intersections(p1,r1,p2,r2):
    # Make a linear transformation that moves (p1,r1) to the unit circle
    #  and (p2,r2) onto the x-axis
    dx = p2[0]-p1[0]
    dy = p2[1]-p1[1]
    theta = math.atan2(dy,dx)
    r = r2/r1
    x = (dx/r1 * math.cos(theta)) + (dy/r1 * math.sin(theta))
    # A solution point forms a triangle with sides x, r, 1 with the centers of
    # the new circles
    if 1+x<r or 1+r<x or x+r<1: # Triangle inequality
        return ()
    # Law of cosines to get angle opposite to length r
    alpha = math.acos((math.pow(x,2)+1-math.pow(r,2))/(2*x))
    xsol = math.cos(alpha)
    ysol = math.sin(alpha)
    # Solutions q1,q2 are formed by undoing the transformations on (xsol,ysol),
    #  (xsol,-ysol)
    q1x = p1[0] + (xsol*math.cos(theta)-ysol*math.sin(theta))*r1
    q1y = p1[1] + (xsol*math.sin(theta)+ysol*math.cos(theta))*r1
    q2x = p1[0] + (xsol*math.cos(theta)+ysol*math.sin(theta))*r1
    q2y = p1[1] + (xsol*math.sin(theta)-ysol*math.cos(theta))*r1
    return ((q1x,q1y),(q2x,q2y))

def dist(x1,y1,x2,y2):
    return math.sqrt(math.pow(x1-x2,2)+math.pow(y1-y2,2))

def on_circle(center,radius,pt,tolerance=math.pow(10,-6)):
    return abs(dist(center[0],center[1],pt[0],pt[1])-radius)<tolerance

c1 = tuple(map(int,sys.stdin.readline().split()))
c2 = tuple(map(int,sys.stdin.readline().split()))
c3 = tuple(map(int,sys.stdin.readline().split()))
p1 = c1[0:2]
p2 = c2[0:2]
p3 = c3[0:2]
r1 = c1[2]
r2 = c2[2]
r3 = c3[2]

numvalues = len(set([r1,r2,r3]))
if numvalues == 3:
    ap1 = apollonian_circle(p1,p2,r1/r2)
    ap2 = apollonian_circle(p2,p3,r2/r3)
    ap3 = apollonian_circle(p3,p1,r3/r1)

    pts_two = circle_intersections(ap1[0],ap1[1],ap2[0],ap2[1])
    pts = []
    for p in pts_two:
        if on_circle(ap3[0],ap3[1],p):
            pts.append(p)
    if pts:
        p = min(pts,key=lambda pt: dist(pt[0],pt[1],p1[0],p1[1]))
        print(('%.5f' % p[0]) + ' ' + ('%.5f' % p[1]))
elif numvalues == 2:
    tolerance = math.pow(10,-6)
    if r1 == r2:
        ap2 = apollonian_circle(p2,p3,r2/r3)
        ap3 = apollonian_circle(p3,p1,r3/r1)
        pts_two = circle_intersections(ap2[0],ap2[1],ap3[0],ap3[1])
        pts = []
        for p in pts_two:
            diff = abs(dist(p[0],p[1],p1[0],p1[1])-dist(p[0],p[1],p2[0],p2[1]))
            if diff < tolerance:
                pts.append(p)
        if pts:
            p = min(pts,key=lambda pt: dist(pt[0],pt[1],p1[0],p1[1]))
            print(('%.5f' % p[0]) + ' ' + ('%.5f' % p[1]))
    elif r1 == r3:
        ap2 = apollonian_circle(p2,p3,r2/r3)
        ap1 = apollonian_circle(p1,p2,r1/r2)
        pts_two = circle_intersections(ap2[0],ap2[1],ap1[0],ap1[1])
        pts = []
        for p in pts_two:
            diff = abs(dist(p[0],p[1],p1[0],p1[1])-dist(p[0],p[1],p3[0],p3[1]))
            if diff < tolerance:
                pts.append(p)
        if pts:
            p = min(pts,key=lambda pt: dist(pt[0],pt[1],p1[0],p1[1]))
            print(('%.5f' % p[0]) + ' ' + ('%.5f' % p[1]))
    elif r2 == r3:
        ap3 = apollonian_circle(p3,p1,r3/r1)
        ap1 = apollonian_circle(p1,p2,r1/r2)
        pts_two = circle_intersections(ap3[0],ap3[1],ap1[0],ap1[1])
        pts = []
        for p in pts_two:
            diff = abs(dist(p[0],p[1],p2[0],p2[1])-dist(p[0],p[1],p3[0],p3[1]))
            if diff < tolerance:
                pts.append(p)
        if pts:
            p = min(pts,key=lambda pt: dist(pt[0],pt[1],p1[0],p1[1]))
            print(('%.5f' % p[0]) + ' ' + ('%.5f' % p[1]))
elif numvalues == 1:
    # circumcenter
    # represent perp. bisectors as lines ax+by=c (where b is 1 or 0)
    b1 = 0 if p1[1] == p2[1] else 1
    a1 = 1 if b1 == 0 else (p2[0]-p1[0])/(p2[1]-p1[1])
    c1 = a1 * ((p1[0]+p2[0])/2) + b1 * ((p1[1]+p2[1])/2)
    b2 = 0 if p1[1] == p3[1] else 1
    a2 = 1 if b2 == 0 else (p3[0]-p1[0])/(p3[1]-p1[1])
    c2 = a2 * ((p1[0]+p3[0])/2) + b2 * ((p1[1]+p3[1])/2)

    x = (c1*b2-b1*c2)/(a1*b2-b1*a2)
    y = (a1*c2-c1*a2)/(a1*b2-b1*a2)
    print(('%.5f' % x) + ' ' + ('%.5f' % y))