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

def winner(x):
    scores = {}
    for i in range(len(x)):
        if x[i][0] in scores:
            scores[x[i][0]] += x[i][1]
        else:
            scores[x[i][0]] = x[i][1]

    s = max(scores.values())
    ss = []
    for i in scores:
        if s == scores[i]:
            ss.append(i)
    
    if len(ss) == 1:
        return ss[0]
    
    cscores = {}
    for i in ss:
        cscores[i] = 0
    scores = {}
    for i in range(len(x)):
        if x[i][0] in cscores:
            cscores[x[i][0]] += x[i][1]
            if cscores[x[i][0]] >= s:
                return x[i][0]

# l = int(input())
# x = []
# for _ in range(l):
#     a,b = input().split()
#     x.append([a,int(b)])
# print(winner(x))
            
# n = int(input())
# dp_c = []
# dp_d = []
# x = []
# pZero = False
# a = 0
# b = 0
# for _ in range(n):
#     c = []
#     d = []
#     for _ in range(n):
#         c.append([0,0])
#         d.append(['',''])
#     dp_c.append(c)
#     dp_d.append(d)
#     x.append(list(map(int,input().split())))

# for i in range(n):
#     for j in range(n):
#         if x[i][j] == 0:
#             pZero = True
#             a = i
#             b = j
#             x[i][j] = 10
        
#         t = x[i][j]
#         while t%2 == 0:
#             dp_c[i][j][0] += 1
#             t = t//2
#         while t%5 == 0:
#             dp_c[i][j][1] += 1
#             t = t//5
        
#         if (i != 0) and (j != 0):
#             if dp_c[i-1][j][0] < dp_c[i][j-1][0]:
#                 dp_c[i][j][0] += dp_c[i-1][j][0]
#                 dp_d[i][j][0] = dp_d[i-1][j][0] + 'D'
#             else:
#                 dp_c[i][j][0] += dp_c[i][j-1][0]
#                 dp_d[i][j][0] = dp_d[i][j-1][0] + 'R'

#             if dp_c[i-1][j][1] < dp_c[i][j-1][1]:
#                 dp_c[i][j][1] += dp_c[i-1][j][1]
#                 dp_d[i][j][1] = dp_d[i-1][j][1] + 'D'
#             else:
#                 dp_c[i][j][1] += dp_c[i][j-1][1]
#                 dp_d[i][j][1] = dp_d[i][j-1][1] + 'R'
        
#         elif i != 0:
#             dp_c[i][j][0] += dp_c[i-1][j][0]
#             dp_d[i][j][0] = dp_d[i-1][j][0] + 'D'
        
#             dp_c[i][j][1] += dp_c[i-1][j][1]
#             dp_d[i][j][1] = dp_d[i-1][j][1] + 'D'
#         elif j != 0:
#             dp_c[i][j][0] += dp_c[i][j-1][0]
#             dp_d[i][j][0] = dp_d[i][j-1][0] + 'R'
    
#             dp_c[i][j][1] += dp_c[i][j-1][1]
#             dp_d[i][j][1] = dp_d[i][j-1][1] + 'R'
    
# zeros = min(dp_c[n-1][n-1])

# if (zeros > 1) and pZero:
#     print(1)
#     print('D'*a + 'R'*b + 'D'*(n-a-1) + 'R'*(n-b-1))
# else:
#     print(zeros)
#     if dp_c[n-1][n-1][0] < dp_c[n-1][n-1][1]:
#         print(dp_d[n-1][n-1][0])
#     else:
#         print(dp_d[n-1][n-1][1])

def findcommentator(A,B,C):
    bLine = A[2] == C[2]
    cLine = A[2] == B[2]

    a = (B[0]-C[0])**2 + (B[1]-C[1])**2
    b = (A[0]-C[0])**2 + (A[1]-C[1])**2
    c = (B[0]-A[0])**2 + (B[1]-A[1])**2
    
    if bLine and cLine:
        x = (a*(b+c-a)*A[0] + b*(a+c-b)*B[0] + c*(b+a-c)*C[0])/(a*(b+c-a) + b*(a+c-b) + c*(b+a-c))
        y = (a*(b+c-a)*A[1] + b*(a+c-b)*B[1] + c*(b+a-c)*C[1])/(a*(b+c-a) + b*(a+c-b) + c*(b+a-c))
        return (x,y)
    
    a = math.sqrt(a)
    b = math.sqrt(b)
    c = math.sqrt(c)

    if bLine:
        D  = [C[0]-A[0],C[1]-A[1],(A[0]**2+A[1]**2-C[0]**2-C[1]**2)/2]
        C1 = [((A[2]**2)*B[0]-(B[2]**2)*A[0])/((A[2]**2-B[2]**2)), ((A[2]**2)*B[1]-(B[2]**2)*A[1])/((A[2]**2-B[2]**2)), abs(A[2]*B[2]*c/((A[2]**2-B[2]**2)))]
        d  = -1*(D[0]*C1[0]+D[1]*C1[1]+D[2])/math.sqrt(D[0]**2+D[1]**2)
        F  = [C1[0] + D[0]*d/math.sqrt(D[0]**2+D[1]**2), C1[1] + D[1]*d/math.sqrt(D[0]**2+D[1]**2)]
        if d < C1[2]:
            x = math.sqrt(C1[2]**2-d**2)
            l = math.sqrt(D[0]**2 + D[1]**2)
            
            P1 = [F[0]+x*D[1]/l,F[1]-x*D[0]/l]
            P2 = [F[0]-x*D[1]/l,F[1]+x*D[0]/l]

            if (P1[0]-A[0])**2 + (P1[1]-A[1])**2 > (P2[0]-A[0])**2 + (P2[1]-A[1])**2:
                    return (P2[0],P2[1])
            else:
                return (P1[0],P1[1])
        
    elif cLine:
        D  = [B[0]-A[0],B[1]-A[1],(A[0]**2+A[1]**2-B[0]**2-B[1]**2)/2]
        C1 = [((A[2]**2)*C[0]-(C[2]**2)*A[0])/((A[2]**2-C[2]**2)), ((A[2]**2)*C[1]-(C[2]**2)*A[1])/((A[2]**2-C[2]**2)), abs(A[2]*C[2]*b/((A[2]**2-C[2]**2)))]
        d  = -1*(D[0]*C1[0]+D[1]*C1[1]+D[2])/math.sqrt(D[0]**2+D[1]**2)
        F  = [C1[0] + D[0]*d/math.sqrt(D[0]**2+D[1]**2), C1[1] + D[1]*d/math.sqrt(D[0]**2+D[1]**2)]
        if d < C1[2]:
            x = math.sqrt(C1[2]**2-d**2)
            l = math.sqrt(D[0]**2 + D[1]**2)
            
            P1 = [F[0]+x*D[1]/l,F[1]-x*D[0]/l]
            P2 = [F[0]-x*D[1]/l,F[1]+x*D[0]/l]

            if (P1[0]-A[0])**2 + (P1[1]-A[1])**2 > (P2[0]-A[0])**2 + (P2[1]-A[1])**2:
                    return (P2[0],P2[1])
            else:
                return (P1[0],P1[1])
                
    else:
        C1 = [((A[2]**2)*B[0]-(B[2]**2)*A[0])/((A[2]**2-B[2]**2)), ((A[2]**2)*B[1]-(B[2]**2)*A[1])/((A[2]**2-B[2]**2)), abs(A[2]*B[2]*c/((A[2]**2-B[2]**2)))]
        C2 = [((A[2]**2)*C[0]-(C[2]**2)*A[0])/((A[2]**2-C[2]**2)), ((A[2]**2)*C[1]-(C[2]**2)*A[1])/((A[2]**2-C[2]**2)), abs(A[2]*C[2]*b/((A[2]**2-C[2]**2)))]
        d  = math.sqrt((C1[0]-C2[0])**2 + (C1[1]-C2[1])**2)
        if  d <= C1[2]+C2[2]:
            k  = 0.5*(C1[2]**2-C2[2]**2)/d**2
            P  = [0.5*(C1[0]+C2[0])+k*(C2[0]-C1[0]), 0.5*(C1[1]+C2[1])+k*(C2[1]-C1[1])]
            P1 = [0,0]
            P2 = [0,0]
            if 2*(C1[2]**2+C2[2]**2)/d**2 - (C1[2]**2-C2[2]**2)**2/d**4 - 1 < 0:
                return None
            k  = 0.5*(math.sqrt(2*(C1[2]**2+C2[2]**2)/d**2 - (C1[2]**2-C2[2]**2)**2/d**4 - 1))

            P1[0] = P[0] + k*(C2[1]-C1[1])
            P2[0] = P[0] - k*(C2[1]-C1[1])
            P1[1] = P[1] + k*(C1[0]-C2[0])
            P2[1] = P[1] - k*(C1[0]-C2[0])
            
            if (P1[0]-A[0])**2 + (P1[1]-A[1])**2 > (P2[0]-A[0])**2 + (P2[1]-A[1])**2:
                    return (P2[0],P2[1])
            else:
                return (P1[0],P1[1])
            
                       
A = list(map(float,input().split()))
B = list(map(float,input().split()))
C = list(map(float,input().split()))
D = findcommentator(A,B,C)
if D != None:
    print(*D)