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:
V=[list(map(int,input().split())) for _ in range(3)]
a=[]
for i in range(3):
    da=V[i][0]-V[(i+1)%3][0]
    db=V[i][1]-V[(i+1)%3][1]
    drs=V[i][2]**2-V[(i+1)%3][2]**2 #Let drs=0
    das=(V[i][0]+V[(i+1)%3][0])*da 
    dbs=(V[i][1]+V[(i+1)%3][1])*db
    a.append([2*da,2*db,drs,das+dbs])

def Gauss(n,m):
    for i in range(n-1):
        Max=i
        for j in range(i,n):
            if a[j][i]>a[Max][i]:
                Max=j
        for j in range(m):
            a[i][j],a[Max][j]=a[Max][j],a[i][j]
        if a[i][i]==0:
            continue
        for j in range(i+1,m):
            a[i][j]/=a[i][i]
        a[i][i]=1
        for j in range(i+1,n):
            tmp=a[j][i]/a[i][i]
            for k in range(i,m):
                a[j][k]-=tmp*a[i][k]
Gauss(3,4)
def gett(x,y):
    a=V[0][0]
    b=V[0][1]
    r=V[0][2]
    A=x[0]**2+y[0]**2
    B=2*x[0]*(x[1]-a)+2*y[0]*(y[1]-b)-r*r
    C=(x[1]-a)**2+(y[1]-b)**2
    if A==0:
        if B==0:
            print()
            exit(0)
        else:
            return C/B
    delta=B**2-4*A*C
    if delta<0:
        print()
        exit(0)
    t1=(-B+delta**(1/2))/(2*A)
    t2=(-B-delta**(1/2))/(2*A)
    if min(t1,t2)>0:
        return min(t1,t2)
    elif max(t1,t2)<0:
        print()
        exit(0)
    else:
        return max(t1,t2)
if abs(a[2][2])<1e-7:
    if abs(a[2][3])>1e-7:
        print()
        exit(0)
    y=(-a[1][2],a[1][3])
    x=(-a[0][2]+a[0][1]*a[1][2],a[0][3]-a[0][1]*a[1][3])
    t=gett(x,y)
    y=-a[1][2]*t+a[1][3]
    x=(-a[0][2]+a[0][1]*a[1][2])*t+a[0][3]-a[0][1]*a[1][3]
    print("%.5f %.5f" % (x,y))
else:
    t=a[2][3]/a[2][2]
    if a[1][1]==0 and a[1][3]-a[1][2]*t!=0:
        print()
        exit(0)
    if a[1][1]==0:
        y=0
    else:
        y=(a[1][3]-a[1][2]*t)/a[1][1]
    if a[0][0]==0 and a[0][3]-a[0][2]*t-a[0][1]*y!=0:
        print()
        exit(0)
    if a[0][0]==0:
        x=0
    else:
        x=(a[0][3]-a[0][2]*t-a[0][1]*y)/a[0][0]
    print("%.5f %.5f" % (x,y))