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:

def main():
    import math
    def calCircle(x1, y1, r1, x2, y2, r2):
        inner = (x1 + r1/(r1+r2) * (x2-x1), y1 + r1/(r1+r2) * (y2-y1))
        outer = ((r2*x1-r1*x2) / (r2-r1), (r2*y1-r1*y2) / (r2-r1))
        centre = ((inner[0]+outer[0])/2, (inner[1]+outer[1])/2)
        radius = ((inner[0]-centre[0])**2 + (inner[1]-centre[1])**2) ** 0.5
        return centre, radius
 
    x1, y1, r1 = map(float, input().split(" "))
    x2, y2, r2 = map(float, input().split(" "))
    x3, y3, r3 = map(float, input().split(" "))
 
    if r1 == r2 and r1 == r3:
        a, b, c, d = x1-x2, y1-y2, x1-x3, y1-y3
        e = ((x1*x1-x2*x2) + (y1*y1-y2*y2)) / 2
        f = ((x1*x1-x3*x3) + (y1*y1-y3*y3)) / 2
        x = -(d*e-b*f)/(b*c-a*d)
        y = -(a*f-c*e)/(b*c-a*d)
    elif r1 == r2:
        a, b, c = x1-x2, y1-y2, ((x1*x1-x2*x2) + (y1*y1-y2*y2)) / 2
        centre, radius = calCircle(x1, y1, r1, x3, y3, r3)
        p = 1+(a*a)/(b*b)
        q = 2*(centre[1]-c/b)*a/b-2*centre[0]
        r = centre[0]**2+(centre[1]-c/b)**2-radius*radius
        delta = q*q - 4*p*r
        px1, px2 = (-q+math.sqrt(delta))/(2*p), (-q-math.sqrt(delta))/(2*p)
        py1, py2 = (c-a*px1)/b, (c-a*px2)/b
        norm1 = ((px1-x1)**2 + (py1-y1)**2) ** 0.5
        norm2 = ((px2-x1)**2 + (py2-y1)**2) ** 0.5
        if r1 / norm1 > r1 / norm2:
            x, y = px1, py1
        else:
            x, y = px2, py2
    elif r1 == r3:
        a, b, c = x1-x3, y1-y3, ((x1*x1-x3*x3) + (y1*y1-y3*y3)) / 2
        centre, radius = calCircle(x1, y1, r1, x2, y2, r2)
        p = 1+(a*a)/(b*b)
        q = 2*(centre[1]-c/b)*a/b-2*centre[0]
        r = centre[0]**2+(centre[1]-c/b)**2-radius*radius
        delta = q*q - 4*p*r
        px1, px2 = (-q+math.sqrt(delta))/(2*p), (-q-math.sqrt(delta))/(2*p)
        py1, py2 = (c-a*px1)/b, (c-a*px2)/b
        norm1 = ((px1-x1)**2 + (py1-y1)**2) ** 0.5
        norm2 = ((px2-x1)**2 + (py2-y1)**2) ** 0.5
        if r1 / norm1 > r1 / norm2:
            x, y = px1, py1
        else:
            x, y = px2, py2
    else:
        centre1, radius1 = calCircle(x1, y1, r1, x2, y2, r2)
        centre2, radius2 = calCircle(x1, y1, r1, x3, y3, r3)
        d = math.sqrt((centre1[0]-centre2[0])**2 + (centre1[1]-centre2[1])**2)
        l = (radius1**2-radius2**2+d**2) / (2*d)
        if radius1**2-l**2 < 0:
            exit()
        h = math.sqrt(radius1**2-l**2)
        px1 = l/d*(centre2[0]-centre1[0]) + h/d*(centre2[1]-centre1[1]) + centre1[0]
        px2 = l/d*(centre2[0]-centre1[0]) - h/d*(centre2[1]-centre1[1]) + centre1[0]
        py1 = l/d*(centre2[1]-centre1[1]) - h/d*(centre2[0]-centre1[0]) + centre1[1]
        py2 = l/d*(centre2[1]-centre1[1]) + h/d*(centre2[0]-centre1[0]) + centre1[1]
        norm1 = ((px1-x1)**2 + (py1-y1)**2) ** 0.5
        norm2 = ((px2-x1)**2 + (py2-y1)**2) ** 0.5
        if r1 / norm1 > r1 / norm2:
            x, y = px1, py1
        else:
            x, y = px2, py2
    print(x, y)






# region M

# region fastio

import sys, io, os
BUFSIZE = 8192
class FastIO(io.IOBase):
    newlines = 0
    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = io.BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None
    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()
    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()
    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)
class IOWrapper(io.IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")
def print(*args, **kwargs):
    for x in args:
        file.write(str(x))
    file.write(kwargs.pop("end", "\n"))
 
sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

# endregion

# region import

inputt = lambda t = 0: range(t) if t else range(int(input()))
inputi = lambda: map(int, input().split())
inputl = lambda: list(inputi())
from math import *
from heapq import *
from bisect import *
from itertools import *
from functools import reduce, lru_cache
from collections import Counter, defaultdict
import re, copy, operator, cmath
from builtins import *

# endregion

# region main

if __name__ == "__main__":
    main()

# endregion

# endregion