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 bool LINE = true;
const bool CIRCLE = false;
struct Point {
  double x, y;
};
struct Node {
  bool type;
  Point O;
  double r;
  Point p[2];
};
Node node[3];
int x[3], y[3], r[3];
inline double dis(const Point &p1, const Point &p2) {
  return sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
}
void getget(int i, int j, int k) {
  if (r[i] == r[j]) {
    node[k].type = LINE;
    node[k].p[0].x = (x[i] + x[j]) / 2.0;
    node[k].p[0].y = (y[i] + y[j]) / 2.0;
    double dx = x[j] - x[i], dy = y[j] - y[i];
    double temp = dx;
    dx = -dy;
    dy = temp;
    node[k].p[1].x = node[k].p[0].x + dx;
    node[k].p[1].y = node[k].p[0].y + dy;
  } else {
    node[k].type = CIRCLE;
    if (r[i] > r[j]) {
      swap(i, j);
    }
    double dx = x[j] - x[i], dy = y[j] - y[i];
    double d = sqrt(dx * dx + dy * dy);
    node[k].p[0].x = x[i] + dx * r[i] / (r[i] + r[j]);
    node[k].p[0].y = y[i] + dy * r[i] / (r[i] + r[j]);
    node[k].p[1].x = x[i] - dx * r[i] / (r[j] - r[i]);
    node[k].p[1].y = y[i] - dy * r[i] / (r[j] - r[i]);
    node[k].r = dis(node[k].p[0], node[k].p[1]) / 2.0;
    node[k].O.x = (node[k].p[0].x + node[k].p[1].x) / 2.0;
    node[k].O.y = (node[k].p[0].y + node[k].p[1].y) / 2.0;
  }
}
const double EPS = 1e-8;
inline bool zero(double x) { return ((x > 0 ? x : -x) < EPS); }
bool parallel(const Point &u1, const Point &u2, const Point &v1,
              const Point &v2) {
  return zero((u1.x - u2.x) * (v1.y - v2.y) - (v1.x - v2.x) * (u1.y - u2.y));
}
Point intersection(const Point &u1, const Point &u2, const Point &v1,
                   const Point &v2) {
  Point ret = u1;
  double t = ((u1.x - v1.x) * (v1.y - v2.y) - (u1.y - v1.y) * (v1.x - v2.x)) /
             ((u1.x - u2.x) * (v1.y - v2.y) - (u1.y - u2.y) * (v1.x - v2.x));
  ret.x += (u2.x - u1.x) * t;
  ret.y += (u2.y - u1.y) * t;
  return ret;
}
void intersectionLineCircle(const Point &c, double r, const Point &l1,
                            const Point &l2, Point &p1, Point &p2) {
  Point p = c;
  p.x += l1.y - l2.y;
  p.y += l2.x - l1.x;
  p = intersection(p, c, l1, l2);
  double t = sqrt(r * r - dis(p, c) * dis(p, c)) / dis(l1, l2);
  p1.x = p.x + (l2.x - l1.x) * t;
  p1.y = p.y + (l2.y - l1.y) * t;
  p2.x = p.x - (l2.x - l1.x) * t;
  p2.y = p.y - (l2.y - l1.y) * t;
}
void intersectionCircleCircle(const Point &c1, double r1, const Point &c2,
                              double r2, Point &p1, Point &p2) {
  Point u, v;
  double t = (1 + (r1 * r1 - r2 * r2) / dis(c1, c2) / dis(c1, c2)) / 2;
  u.x = c1.x + (c2.x - c1.x) * t;
  u.y = c1.y + (c2.y - c1.y) * t;
  v.x = u.x + c1.y - c2.y;
  v.y = u.y - c1.x + c2.x;
  intersectionLineCircle(c1, r1, u, v, p1, p2);
}
inline double xmult(const Point &p1, const Point &p2, const Point &p0) {
  return (p1.x - p0.x) * (p2.y - p0.y) - (p2.x - p0.x) * (p1.y - p0.y);
}
double disptoline(const Point &p, const Point &l1, const Point &l2) {
  return fabs(xmult(p, l1, l2)) / dis(l1, l2);
}
int getinsect(int i, int j, Point p[2]) {
  if (node[i].type == LINE && node[j].type == LINE) {
    if (parallel(node[i].p[0], node[i].p[1], node[j].p[0], node[j].p[1])) {
      return 0;
    }
    p[0] = intersection(node[i].p[0], node[i].p[1], node[j].p[0], node[j].p[1]);
    return 1;
  }
  if (node[i].type == CIRCLE && node[j].type == CIRCLE) {
    if (dis(node[i].O, node[j].O) - EPS >= node[i].r + node[j].r) return 0;
    if (dis(node[i].O, node[j].O) + EPS <= fabs(node[i].r - node[j].r))
      return 0;
    intersectionCircleCircle(node[i].O, node[i].r, node[j].O, node[j].r, p[0],
                             p[1]);
    return 2;
  }
  if (node[i].type == CIRCLE) {
    swap(i, j);
  }
  if (disptoline(node[j].O, node[i].p[0], node[i].p[1]) - EPS >= node[j].r)
    return 0;
  intersectionLineCircle(node[j].O, node[j].r, node[i].p[0], node[i].p[1], p[0],
                         p[1]);
  return 2;
}
bool checkp(const Point &p) {
  if (node[2].type == LINE) {
    return disptoline(p, node[2].p[0], node[2].p[1]) <= EPS;
  } else {
    return fabs(dis(p, node[2].O) - node[2].r) <= EPS;
  }
}
int main() {
  Point pp;
  for (int i = 0; i < 3; ++i) {
    scanf("%d %d %d", x + i, y + i, r + i);
  }
  pp.x = x[0];
  pp.y = y[0];
  for (int i = 0; i < 3; ++i) {
    getget(i, (i + 1) % 3, i);
  }
  Point p[2];
  int np = getinsect(0, 1, p);
  if (np == 1) {
    if (checkp(p[0])) {
      printf("%.5lf %.5lf\n", p[0].x, p[0].y);
    }
  } else if (np == 2) {
    if (checkp(p[0]) && checkp(p[1])) {
      if (dis(p[0], pp) < dis(p[1], pp)) {
        printf("%.5lf %.5lf\n", p[0].x, p[0].y);
      } else {
        printf("%.5lf %.5lf\n", p[1].x, p[1].y);
      }
    } else {
      if (checkp(p[0])) {
        printf("%.5lf %.5lf\n", p[0].x, p[0].y);
      }
      if (checkp(p[1])) {
        printf("%.5lf %.5lf\n", p[1].x, p[1].y);
      }
    }
  }
  return 0;
}