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-7;
int cmp(const double &x) { return x < -eps ? -1 : x > eps; }
struct circle {
  double x, y, r;
  void re() { cin >> x >> y >> r; }
};
circle C1, C2, C3;
double sqr(const double &x) { return x * x; }
void get(circle C1, circle C2, double &a, double &bx, double &by, double &c) {
  double k;
  k = sqr(C2.r) * 1;
  a += k;
  bx -= k * 2 * C1.x;
  by -= k * 2 * C1.y;
  c += k * (sqr(C1.x) + sqr(C1.y));
  k = sqr(C1.r) * -1;
  a += k;
  bx -= k * 2 * C2.x;
  by -= k * 2 * C2.y;
  c += k * (sqr(C2.x) + sqr(C2.y));
}
void jie(double a, double b, double c, double &x1, double &x2) {
  if (!cmp(a)) {
    x1 = x2 = -c / b;
    return;
  }
  if (cmp(sqr(b) - 4 * a * c) < 0) exit(0);
  double s = -b / (2 * a), d = sqrt(sqr(b) - 4 * a * c) / (2 * a);
  x1 = s + d;
  x2 = s - d;
}
double dis1(double x, double y) { return sqr(x - C1.x) + sqr(y - C1.y); }
int main() {
  C1.re();
  C2.re();
  C3.re();
  double a1 = 0, a2 = 0, bx1 = 0, by1 = 0, c1 = 0, bx2 = 0, by2 = 0, c2 = 0;
  get(C1, C2, a1, bx1, by1, c1);
  get(C1, C3, a2, bx2, by2, c2);
  double a = a2 * bx1 - a1 * bx2, b = a2 * by1 - a1 * by2,
         c = a2 * c1 - a1 * c2;
  if (!cmp(a1)) {
    if (!cmp(a2)) {
      printf("%.5lf %.5lf\n", -(c1 * by2 - c2 * by1) / (bx1 * by2 - bx2 * by1),
             -(c1 * bx2 - c2 * bx1) / (by1 * bx2 - by2 * bx1));
      return 0;
    }
    a = bx1;
    b = by1;
    c = c1;
    swap(a1, a2);
    swap(bx1, bx2);
    swap(by1, by2);
    swap(c1, c2);
  }
  bool swaped = 0;
  if (!cmp(b)) {
    swaped = 1;
    swap(a, b);
    swap(bx1, by1);
  }
  a = -a / b;
  c = -c / b;
  double x1, x2;
  jie(a1 * (1 + sqr(a)), bx1 + a1 * 2 * a * c + by1 * a,
      a1 * sqr(c) + by1 * c + c1, x1, x2);
  double y1 = a * x1 + c, y2 = a * x2 + c;
  if (swaped) {
    swap(x1, y1);
    swap(x2, y2);
  }
  if (dis1(x1, y1) > dis1(x2, y2)) {
    swap(x1, x2);
    swap(y1, y2);
  }
  printf("%.5lf %.5lf\n", x1, y1);
  return 0;
}