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;
struct pnt {
  double x, y;
  pnt(double x = 0, double y = 0) : x(x), y(y) {}
  pnt operator-(pnt a) { return pnt(x - a.x, y - a.y); }
  pnt operator+(pnt a) { return pnt(x + a.x, y + a.y); }
  pnt operator*(double a) { return pnt(x * a, y * a); }
  pnt operator/(double a) { return pnt(x / a, y / a); }
  double operator^(pnt a) { return x * a.y - y * a.x; }
  double operator&(pnt a) { return x * a.x + y * a.y; }
};
double dist(pnt a) { return sqrt(a & a); }
pnt rot(pnt p) { return pnt(-p.y, p.x); }
int intersect_circles(pnt c, double r, pnt cc, double rr, pnt p[]) {
  double d = dist(c - cc);
  if (r + rr < d || r + d < rr || rr + d < r) return 0;
  double x = (r * r - rr * rr + d * d) / (d * 2);
  pnt cp = (c * (d - x) + cc * x) / d;
  if (r + rr == d || r + d == rr || rr + d == r) {
    p[0] = cp;
    return 1;
  }
  double h = sqrt(r * r - x * x);
  pnt dv = rot(cc - c) * h / d;
  p[0] = cp + dv;
  p[1] = cp - dv;
  return 2;
}
double dist_line(pnt a, pnt b, pnt c) {
  return fabs(a - b ^ c - b) / dist(b - c);
}
bool intersect(pnt a, pnt b, pnt c, pnt d, pnt &res) {
  double den = a - b ^ c - d;
  if (fabs(den) < 1e-6) return 0;
  double x = (a - d ^ c - d) / den;
  res = a * (1 - x) + b * x;
  return 1;
}
int main() {
  pnt P[10], ret, res;
  double x1, y1, r1, x2, y2, r2, x3, y3, r3;
  while (scanf("%lf%lf%lf%lf%lf%lf%lf%lf%lf", &x1, &y1, &r1, &x2, &y2, &r2, &x3,
               &y3, &r3) == 9) {
    pnt a = pnt(x1, y1);
    pnt b = pnt(x2, y2);
    pnt c = pnt(x3, y3);
    if (fabs(r2 - r1) < 1e-6 && fabs(r1 - r3) < 1e-6) {
      intersect((a + b) / 2, (a + b) / 2 + pnt(b.y - a.y, a.x - b.x),
                (b + c) / 2, (b + c) / 2 + pnt(b.y - c.y, c.x - b.x), ret);
      printf("%.5lf %.5lf\n", ret.x, ret.y);
      continue;
    }
    pnt A, B, C;
    double rr1, rr2, rr3;
    A = a, B = b, C = c, rr1 = r1, rr2 = r2, rr3 = r3;
    if (fabs(r2 - r1) < 1e-6) {
      A = c, B = a, C = b;
      rr1 = r3, rr2 = r1, rr3 = r2;
    }
    if (fabs(r3 - r1) < 1e-6) {
      A = b, B = a, C = c;
      rr1 = r2, rr2 = r1, rr3 = r3;
    }
    if (fabs(r2 - r3) < 1e-6) {
      A = a, B = b, C = c;
      rr1 = r1, rr2 = r2, rr3 = r3;
    }
    pnt aa = A + (B - A) * rr1 / (rr2 + rr1);
    pnt aaa = A + (B - A) * rr1 / (rr1 - rr2);
    pnt bb = A + (C - A) * rr1 / (rr1 + rr3);
    pnt bbb = A + (C - A) * rr1 / (rr1 - rr3);
    int ans = intersect_circles((aa + aaa) / 2., dist(aa - aaa) / 2.,
                                (bb + bbb) / 2., dist(bb - bbb) / 2., P);
    if (!ans) continue;
    if (ans == 2) {
      if (dist(P[0] - a) < dist(P[1] - a))
        ret = P[0];
      else
        ret = P[1];
    }
    if (ans == 1) ret = P[0];
    printf("%.5lf %.5lf\n", ret.x, ret.y);
  }
  return 0;
}