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

Solution:
#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-6;
struct Point {
  double x, y;
};
Point p[5];
double r[5];
double dist(Point p1, Point p2) { return hypot(p1.x - p2.x, p1.y - p2.y); }
void circumcenter(Point p1, Point p2, Point p3) {
  double x1 = p2.x - p1.x, y1 = p2.y - p1.y, c1 = (x1 * x1 + y1 * y1) / 2;
  double x2 = p3.x - p1.x, y2 = p3.y - p1.y, c2 = (x2 * x2 + y2 * y2) / 2;
  double d = x1 * y2 - x2 * y1;
  printf("%.5lf %.5lf\n", p1.x + (c1 * y2 - y1 * c2) / d,
         p1.y + (c2 * x1 - c1 * x2) / d);
}
Point circumcenter2(Point P, Point Q, Point R) {
  double x1 = Q.x - P.x, y1 = Q.y - P.y, x2 = R.x - P.x, y2 = R.y - P.y;
  double x = (y2 * (x1 * x1 + y1 * y1) - y1 * (x2 * x2 + y2 * y2)) / 2.0 /
             (x1 * y2 - x2 * y1);
  double y = -(x2 * (x1 * x1 + y1 * y1) - x1 * (x2 * x2 + y2 * y2)) / 2.0 /
             (x1 * y2 - x2 * y1);
  Point ans = {P.x + x, P.y + y};
  double c1 = (x1 * x1 + y1 * y1) / 2;
  double c2 = (x2 * x2 + y2 * y2) / 2;
  cout << c1 << " " << c2 << endl;
  printf("%.5lf %.5lf\n", ans.x, ans.y);
  return ans;
}
vector<Point> circleIntersect(Point p1, double r1, Point p2, double r2) {
  double d = dist(p1, p2);
  double t = (r1 * r1 + d * d - r2 * r2) / 2 / d / d;
  Point m = {p1.x + (p2.x - p1.x) * t, p1.y + (p2.y - p1.y) * t};
  double h = sqrt(max(r1 * r1 - t * d * t * d, 0.0));
  double tx = (p2.y - p1.y) / d * h;
  double ty = (p2.x - p1.x) / d * h;
  vector<Point> vi;
  Point aa = {m.x - tx, m.y + ty};
  Point bb = {m.x + tx, m.y - ty};
  vi.push_back(aa);
  vi.push_back(bb);
  return vi;
}
void calcCircle() {
  if (fabs(r[0] - r[1]) < EPS) swap(p[1], p[2]), swap(r[1], r[2]);
  if (fabs(r[0] - r[2]) < EPS) swap(p[0], p[1]), swap(r[0], r[1]);
  double r1 = r[1] * r[0] / fabs(r[1] * r[1] - r[0] * r[0]) * dist(p[1], p[0]);
  double t1 = r[1] * r[1] / (r[1] * r[1] - r[0] * r[0]);
  Point A = {p[1].x + t1 * (p[0].x - p[1].x), p[1].y + t1 * (p[0].y - p[1].y)};
  double r2 = r[2] * r[0] / fabs(r[2] * r[2] - r[0] * r[0]) * dist(p[2], p[0]);
  double t2 = r[2] * r[2] / (r[2] * r[2] - r[0] * r[0]);
  Point B = {p[2].x + t2 * (p[0].x - p[2].x), p[2].y + t2 * (p[0].y - p[2].y)};
  double d = dist(A, B);
  if (d > r1 + r2 + EPS || d < fabs(r1 - r2) - EPS) return;
  vector<Point> vp = circleIntersect(A, r1, B, r2);
  if (dist(vp[0], p[0]) > dist(vp[1], p[0])) swap(vp[0], vp[1]);
  printf("%.5lf %.5lf\n", vp[0].x, vp[0].y);
}
int main() {
  for (int i = 0; i < 3; ++i) cin >> p[i].x >> p[i].y >> r[i];
  if (r[0] == r[1] && r[0] == r[2]) {
    circumcenter(p[0], p[1], p[2]);
  } else {
    calcCircle();
  }
  return 0;
}