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 math
import itertools

class Circle(object):
    def __init__(self, Cx, Cy, r):
        self._Cx = Cx
        self._Cy = Cy
        self._r = r


def apollonius(Ax, Ay, Bx, By, k):
    Cx = (1 * Ax + k * Bx) / (k + 1)
    Cy = (1 * Ay + k * By) / (k + 1)
    Dx = (Ax - k * Bx) / (1 - k)
    Dy = (Ay - k * By) / (1 - k)
    apollonius_circle = Circle((Cx + Dx) / 2, (Cy + Dy) / 2, (((Dx - Cx) ** 2 + (Dy - Cy) ** 2) ** 0.5) / 2)
    return apollonius_circle


def bisector(Ax, Ay, Bx, By):
    if By - Ay == 0:
        return [(Ax + Bx) / 2]
    x0, y0, k = (Ax + Bx) / 2, (Ay + By) / 2, -(Bx - Ax) / (By - Ay)
    return x0, y0, k


def circle_intersection(circle1, circle2):
    x1 = circle1._Cx
    x2 = circle2._Cx
    y1 = circle1._Cy
    y2 = circle2._Cy
    r1 = circle1._r
    r2 = circle2._r
    d = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5
    if r1 + r2 < d - 10 ** -4 or abs(r1 - r2) > d + 10 ** -4:
        return None
    if abs(r1 + r2 - d) <= 10 ** -4:
        return ((r1 * x2 + r2 * x1) / (r1 + r2), (r1 * y2 + r2 * y1) / (r1 + r2))
    if abs(abs(r1 - r2) - d) <= 10 ** -4:
        return ((r2 * x1 - r1 * x2) / (r2 - r1), (r2 * y1 - r1 * y2) / (r2 - r1))
    angle = math.acos((r1 ** 2 + r2 ** 2 - d ** 2) / (2 * r1 * r2))
    h = r1 * r2 * math.sin(angle) / d
    AE = (r1 ** 2 - r2 ** 2 + d ** 2) / (2 * d)
    x0 = x1 + AE * (x2 - x1) / d
    y0 = y1 + AE * (y2 - y1) / d
    I1 = (x0 - h * (y2 - y1) / d, y0 + h * (x2 - x1) / d)
    I2 = (x0 + h * (y2 - y1) / d, y0 - h * (x2 - x1) / d)
    return I1, I2

def bisector_intersection(bisector1, bisector2):
    if len(bisector1) == 3 and len(bisector2) == 3:
        x1 = bisector1[0]
        y1 = bisector1[1]
        k1 = bisector1[2]
        x2 = bisector2[0]
        y2 = bisector2[1]
        k2 = bisector2[2]
        if abs(k1 - k2) < 10 ** -4:
            return None
        x = (y2 - y1 + k1 * x1 - k2 * x2) / (k1 - k2)
        y = (k1 * k2 * (x2 - x1) + k2 * y1 - k1 * y2) / (k2 - k1)
        return x, y
    if len(bisector1) == 1 and len(bisector2) == 3:
        x1 = bisector1[0]
        x2 = bisector2[0]
        y2 = bisector2[1]
        k2 = bisector2[2]
        x = x1
        y = y2 + k2 * (x1 - x2)
        return x, y
    if len(bisector1) == 3 and len(bisector2) == 1:
        x1 = bisector1[0]
        y1 = bisector1[1]
        k1 = bisector1[2]
        x2 = bisector2[0]
        x = x2
        y = y1 + k1 * (x2 - x1)
        return x, y
    if len(bisector1) == 1 and len(bisector2) == 1:
        return None

def bisector_circle_intersection(b, c):
    x0 = c._Cx
    y0 = c._Cy
    r = c._r
    if len(b) == 1:
        x = b[0]
        if r ** 2 - (x - x0) ** 2 < 0:
            return None
        if r ** 2 - (x - x0) ** 2 == 0:
            return x, y0
        y1 = (r ** 2 - (x - x0) ** 2) ** 0.5 + y0
        y2 = -(r ** 2 - (x - x0) ** 2) ** 0.5 + y0
        return ((x, y1), (x, y2))
    
    l_k = b[2]
    l_b = b[1] - l_k * b[0]
    x1 = -(((l_k ** 2 + 1) * (r ** 2) - (x0 ** 2) * (l_k ** 2) + (2 * x0 * y0 - 2 * l_b * x0) * l_k - y0 ** 2 + 2 * l_b * y0 - l_b ** 2) ** 0.5 + l_k * (l_b - y0) - x0) / (l_k ** 2 + 1)
    y1 = -(l_k * (((l_k ** 2) * (r ** 2) + r ** 2 - (x0 ** 2) * (l_k ** 2) + 2 * x0 * y0 * l_k - 2 * l_b * x0 * l_k - y0 ** 2 + 2 * l_b * y0 - l_b ** 2) ** 0.5 - x0) - y0 * (l_k ** 2) - l_b) / (l_k ** 2 + 1)
    x2 = (((l_k ** 2 + 1) * (r ** 2) - (x0 ** 2) * (l_k ** 2) + (2 * x0 * y0 - 2 * l_b * x0) * l_k - y0 ** 2 + 2 * l_b * y0 - l_b ** 2) ** 0.5 - l_k * (l_b - y0) + x0) / (l_k ** 2 + 1)
    y2 = -(l_k * (-((l_k ** 2) * (r ** 2) + r ** 2 - (x0 ** 2) * (l_k ** 2) + 2 * x0 * y0 * l_k - 2 * l_b * x0 * l_k - y0 ** 2 + 2 * l_b * y0 - l_b ** 2) ** 0.5 - x0) - y0 * (l_k ** 2) - l_b) / (l_k ** 2 + 1)
    ans = []
    if type(x1) != complex and type(y1) != complex:
        ans.append((x1, y1))
    if type(x2) != complex and type(y2) != complex:
        ans.append((x2, y2))
    if ans != []:
        return ans
    return None



stadium_list = []
for _ in range(3):
    x, y, r = map(int, input().split())
    stadium_list.append(Circle(x, y, r))

apollonius_list = []
bisector_list = []
if stadium_list[0]._r / stadium_list[1]._r == 1:
    bisector_list.append(bisector(stadium_list[0]._Cx, stadium_list[0]._Cy, stadium_list[1]._Cx, stadium_list[1]._Cy))
else:
    apollonius_list.append(apollonius(stadium_list[0]._Cx, stadium_list[0]._Cy, stadium_list[1]._Cx, stadium_list[1]._Cy, stadium_list[0]._r / stadium_list[1]._r))
if stadium_list[1]._r / stadium_list[2]._r == 1:
    bisector_list.append(bisector(stadium_list[1]._Cx, stadium_list[1]._Cy, stadium_list[2]._Cx, stadium_list[2]._Cy))
else:
    apollonius_list.append(apollonius(stadium_list[1]._Cx, stadium_list[1]._Cy, stadium_list[2]._Cx, stadium_list[2]._Cy, stadium_list[1]._r / stadium_list[2]._r))
if stadium_list[2]._r / stadium_list[0]._r == 1:
    bisector_list.append(bisector(stadium_list[2]._Cx, stadium_list[2]._Cy, stadium_list[0]._Cx, stadium_list[0]._Cy))
else:
    apollonius_list.append(apollonius(stadium_list[2]._Cx, stadium_list[2]._Cy, stadium_list[0]._Cx, stadium_list[0]._Cy, stadium_list[2]._r / stadium_list[0]._r))

intersection_list = []
def add_circle_intersection(c1, c2):
    ans = circle_intersection(c1, c2)
    if ans != None:
        if type(ans[0]) == tuple:
            intersection_list.append(ans[0])
            intersection_list.append(ans[1])
        else:
            intersection_list.append(ans)
def add_bisector_intersection(b1, b2):
    ans = bisector_intersection(b1, b2)
    if ans != None:
        intersection_list.append(ans)
def add_bisector_circle_intersection(b, c):
    ans = bisector_circle_intersection(b, c)
    if ans != None:
        if type(ans[0]) == tuple:
            intersection_list.append(ans[0])
            intersection_list.append(ans[1])
        else:
            intersection_list.append(ans)

if len(apollonius_list) > 1:
    for c1, c2 in itertools.combinations(apollonius_list, 2):
        add_circle_intersection(c1, c2)
if len(bisector_list) > 1:
    for b1, b2 in itertools.combinations(bisector_list, 2):
        add_bisector_intersection(b1, b2)
if len(apollonius_list) > 0 and len(bisector_list) > 0:
    for c in apollonius_list:
        for b in bisector_list:
            add_bisector_circle_intersection(b, c)

if len(intersection_list) != 0:
    sinangle_list = [stadium_list[0]._r / ((stadium_list[0]._Cx - I[0]) ** 2 + (stadium_list[0]._Cy - I[1]) ** 2) ** 0.5 for I in intersection_list]
    index = sinangle_list.index(max(sinangle_list))
    print('%.6f %.6f'%(intersection_list[index][0], intersection_list[index][1]))