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 PYTHON):

Solution:
import itertools
import math
stadiums=[tuple(float(x) for x in raw_input().split()) for y in xrange(3)]
locii=[]
points=[]
for i in itertools.combinations(stadiums,2):
	if i[0][2]==i[1][2]:
		locii.append((0,2*(i[1][0]-i[0][0]),2*(i[1][1]-i[0][1]),pow(i[0][0],2)+pow(i[0][1],2)-pow(i[1][0],2)-pow(i[1][1],2)))
	else:
		r1=pow(i[0][2],2)
		r2=pow(i[1][2],2)
		locii.append((r1-r2,r2*i[0][0]-r1*i[1][0],r2*i[0][1]-r1*i[1][1],r1*(pow(i[1][0],2)+pow(i[1][1],2))-r2*(pow(i[0][0],2)+pow(i[0][1],2))))
for i in itertools.combinations(locii,2):
	if i[0][0]==0 and i[1][0]==0:
		points.append([(round((i[0][2]*i[1][3]-i[0][3]*i[1][2])/(i[0][1]*i[1][2]-i[0][2]*i[1][1]),5),round((i[0][1]*i[1][3]-i[0][3]*i[1][1])/(i[0][1]*i[1][2]-i[0][2]*i[1][1]),5))])
	else:
		if i[0][0]!=0 and i[1][0]!=0:
			c=[[x/i[0][0] for x in i[0][1:]],[x/i[1][0] for x in i[1][1:]]]
			l=((c[1][0]-c[0][0])/(c[0][1]-c[1][1]),(c[1][2]-c[0][2])/(2*(c[0][1]-c[1][1])))
			q=(1+pow(l[0],2),2*(l[0]*l[1]+c[0][0]+c[0][1]*l[0]),pow(l[1],2)+2*c[0][1]*l[1]+c[0][2])
		elif i[0][0]==0 and i[1][0]!=0:
			c=[x/i[1][0] for x in i[1][1:]]
			l=(-1*i[0][1]/i[0][2],-1*i[0][3]/i[0][2])
			q=(1+pow(l[0],2),2*(l[0]*l[1]+c[0]+c[1]*l[0]),pow(l[1],2)+2*c[1]*l[1]+c[2])
		elif i[0][0]!=0 and i[1][0]==0:
			c=[x/i[0][0] for x in i[0][1:]]
			l=(-1*i[1][1]/i[1][2],-1*i[1][3]/i[1][2])
			q=(1+pow(l[0],2),2*(l[0]*l[1]+c[0]+c[1]*l[0]),pow(l[1],2)+2*c[1]*l[1]+c[2])
		try:
			a=((-1*q[1]+math.sqrt(pow(q[1],2)-4*q[0]*q[2]))/(2*q[0]),(-1*q[1]-math.sqrt(pow(q[1],2)-4*q[0]*q[2]))/(2*q[0]))
			points.append([(round(a[0],5),round(l[0]*a[0]+l[1],5)),(round(a[1],5),round(l[0]*a[1]+l[1],5))])
		except:
			points.append([])
points=list(set(list(set(points[0]).intersection(points[1]))).intersection(points[2]))
if len(points)==2:
	if math.hypot(points[0][0]-stadiums[0][0],points[0][1]-stadiums[0][1])<math.hypot(points[1][0]-stadiums[0][0],points[1][1]-stadiums[0][1]):
		print points[0][0]," ",points[0][1]
	else:
		print points[1][0]," ",points[1][1]
elif len(points)==1:
	print points[0][0]," ",points[0][1]