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 *
LOG = False
EPSION = 0.00001

x1=0
x2=0
x3=0
y1=0
y2=0
y3=0
r1=0
r2=0
r3=0

r21=0
r31=0


def a():
    return x2-x1

def b():
    return y2-y1

def c():
    return x3-x1

def d():
    return y3-y1

def A(d1):
    tmp = d1**2 * (1-(r2/r1)**2) - x1**2 -y1**2 + x2**2 + y2**2
    return tmp/2.0

def B(d1):
    tmp = d1**2 * (1-(r3/r1)**2) - x1**2 -y1**2 + x3**2 + y3**2
    return tmp/2.0

def Y(d1):
    num = B(d1) - A(d1)*c()/a()
    den = d() - b()*c()/a()
    return num/den

def X(d1, Y):
    return A(d1)/a() - b()*Y/a()

def f(d1):
    y_ = Y(d1)
    x_ = X(d1, y_)
    rem = (x_ - x1) ** 2 + (y_ - y1) ** 2 - d1 ** 2
    return rem

def solve_case():
    global x1,y1, r1,x2, y2, r2, x3, y3, r3, r21, r31
    x1,y1,r1   = [float(x) for x in raw_input().split()]
    x2, y2, r2 = [float(x) for x in raw_input().split()]
    x3, y3, r3 = [float(x) for x in raw_input().split()]
    r21 =(r2 / r1) * (r2/r1)
    r31 = (r3/r1)*(r3/r1)


    XMIN=min(x1,x2,x3)
    YMIN=min(y1,y2,y3)

    XMAX=max(x1,x2,x3)
    YMAX=max(y1,y2,y3)

    x_ = 1<<63
    y_ = 1<<63
    D = 5*sqrt((YMAX-YMIN)**2 + (XMAX-XMIN)**2)
    low = min(r1,r2,r3)
    high = D

    for r in range(1, 1000):
        if  f(low+r) < 0:
            high = low + r
            break

    n = 0
    while True and n<100:
        n += 1
        d1 = (low + high)/2
        rem = f(d1)
        if abs(rem) < EPSION:
            y_ = Y(d1)
            x_ = X(d1,y_)
            break
        if rem > 0:
            low=d1
        elif rem < 0:
            high = d1
        if LOG: print d1, rem, x_, y_

    if (x_!=1<<63):
        print "{:5f} {:5f}".format(x_,y_)
    return 0








if __name__ == '__main__':
    solve_case()