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:
import math
import cmath

class Circle:
    def __init__(self,p,r):
        self.type = "Circle"
        self.p = p
        self.r = r

class Segment:
    def __init__(self,bgn,end):
        self.type = "Segment"
        self.bgn = bgn
        self.end = end

def cross(a,b):
    return (a.conjugate()*b).imag

def rotate(p):
    return complex(-p.imag,p.real)

def l2lIntersect(a,b):
    d1,d2 = a.end-a.bgn,b.end-b.bgn;
    return a.bgn + d1*cross(b.bgn-a.bgn,d2)/cross(d1,d2);

def c2lIntersect(a,b):
    p,v = b.bgn,b.end-b.bgn
    A = abs(v)*abs(v)
    B = 2*(v.real*(p-a.p).real + v.imag*(p-a.p).imag)
    C = abs(p-a.p)*abs(p-a.p)-a.r*a.r
    if B*B-4*A*C<0: return []
    ret = []
    ret.append(p+v*(-B-math.sqrt(B*B-4*A*C))/(2*A))
    ret.append(p+v*(-B+math.sqrt(B*B-4*A*C))/(2*A))
    return ret

def c2cIntersect(a,b):
    d = abs(a.p-b.p)
    if d==0 or a.r+b.r<d or a.r+d<b.r or b.r+d<a.r: return []
    angle = math.acos((b.r*b.r-a.r*a.r-d*d)/(-2*a.r*d))
    ret = []
    ret.append((b.p-a.p)*cmath.rect(a.r/d, angle)+a.p)
    ret.append((b.p-a.p)*cmath.rect(a.r/d,-angle)+a.p)
    return ret


def calcIntersect(a,b):
    if a.type=="Segment" and b.type=="Segment":
        return [l2lIntersect(a,b)]
    if a.type=="Segment" and b.type=="Circle":
        return c2lIntersect(b,a)
    if a.type=="Circle" and b.type=="Segment":
        return c2lIntersect(a,b)    
    if a.type=="Circle" and b.type=="Circle":
        return c2cIntersect(a,b)


def getAngle(p,circle):
    d = abs(p-circle.p)
    return math.tan(circle.r/d)*2

    
def read():
    ret = []
    for i in range(3):
        x,y,r = map(float,raw_input().split())
        ret.append(Circle(complex(x,y),r))
    return ret


def work(circles):
    toCalc = []
    for i in range(2):
        c1,c2 = circles[i],circles[i+1]
        if c1.r==c2.r:
            bgn = (c2.p-c1.p)*0.5+c1.p
            toCalc.append(Segment(bgn,bgn+rotate(c2.p-c1.p)))
        else:
            L = (c2.p-c1.p)*c1.r/(c1.r+c2.r)+c1.p
            R = (c2.p-c1.p)*c2.r/(c1.r-c2.r)+c2.p
            toCalc.append(Circle((L+R)/2,abs(R-L)/2))

    maxV = 0
    XPs = calcIntersect(toCalc[0],toCalc[1])

    for i in range(len(XPs)):
        xp = XPs[i]
        isOk = True
        for j in range(3):
            for k in range(3):
                a = abs(xp-circles[j].p)
                b = abs(xp-circles[k].p)
                if abs(b*circles[j].r-a*circles[k].r)>1e-4:
                   isOk = False
        if isOk:
            sumAngle = 0
            for j in range(3):
                   sumAngle += getAngle(xp,circles[i])
            if maxV<sumAngle:
                   maxV = sumAngle
                   ans = xp

    if maxV==0:
        print ""
    else:
        print "%.5lf %.5lf"%(ans.real,ans.imag)

work(read())