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


def rt(s1, s2):
    x1, y1, r1 = s1
    x2, y2, r2 = s2

    if r1 == r2:
        k = False
        m = x2 - x1
        n = y2 - y1
        e = m, n, -0.5 * (m * (x1 + x2) + n * (y1 + y2))
    else:
        k = True
        m = r1 * r1
        n = r2 * r2
        d = m - n
        e = ((m * x2 - n * x1) / d,
             (m * y2 - n * y1) / d,
             m * n * ((x1 - x2) ** 2 + (y1 - y2) ** 2) / (d * d))
    return k, e


def tr(r, eps=1e-5):
    return -eps < r < eps


def trt(e1, e2, p):
    a1, b1, c1 = e1
    a2, b2, c2 = e2
    d = a1 * b2 - b1 * a2
    if not tr(d):
        p.append(((b1 * c2 - c1 * b2) / d, (c1 * a2 - a1 * c2) / d))


def rtr(e1, e2, p):
    a, b, c = e1
    cx, cy, rr = e2

    ab = a * a + b * b
    xy = a * cx + b * cy + c
    zz = xy / ab
    dd = rr - xy * zz

    px = cx - a * zz
    py = cy - b * zz
    if tr(dd):
        p.append((px, py))
    elif dd > 0.0:
        t = sqrt(dd / ab)
        ta = t * a
        tb = t * b
        p.extend([(px + tb, py - ta),
                  (px - tb, py + ta)])


def rtt(e1, e2, p):
    x1, y1, r1 = e1
    x2, y2, r2 = e2

    a = x2 - x1
    b = y2 - y1

    if (r1 + r2) ** 2 < (a * a + b * b):
        return

    c = -0.5 * (a * (x1 + x2) + b * (y1 + y2) + r1 - r2)
    rtr((a, b, c), e1, p)


def main():
    s1, s2, s3 = (tuple(map(float, input().split())) for _ in range(3))
    c1, eq1 = rt(s1, s2)
    c2, eq2 = rt(s2, s3)

    point = []
    if c1 and c2:
        rtt(eq1, eq2, point)
    elif c1:
        rtr(eq2, eq1, point)
    elif c2:
        rtr(eq1, eq2, point)
    else:
        trt(eq1, eq2, point)

    if point:
        if len(point) == 1:
            best = point[0]
        else:
            x, y, _ = s1
            best = min(point,
                       key=lambda q: (q[0] - x) ** 2 + (q[1] - y) ** 2)
        print("{:.5f} {:.5f}".format(*best))

main()