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 P {
  double x, y;
  P(double x = 0, double y = 0) : x(x), y(y) {}
};
P operator+(P a, P b) { return P(a.x + b.x, a.y + b.y); }
P operator-(P a, P b) { return P(a.x - b.x, a.y - b.y); }
P operator*(P a, double b) { return P(a.x * b, a.y * b); }
double operator&(P a, P b) { return a.x * b.x + a.y * b.y; }
double operator*(P a, P b) { return a.x * b.y - a.y * b.x; }
P operator~(P a) { return P(-a.y, a.x); }
double operator!(P a) { return sqrt(a & a); }
P p1, p2;
bool get(P a, double r, P v, double d) {
  double h = v & v;
  if (h < 1E-8) return 0;
  d /= h;
  h = r * r / h - d * d;
  if (h < -1E-8) return 0;
  if (h < 0) h = 0;
  h = sqrt(h);
  p1 = a + v * d + ~v * h;
  p2 = a + v * d - ~v * h;
  return 1;
}
bool icc(P a, double ra, P b, double rb) {
  if (ra < rb)
    return icc(b, rb, a, ra);
  else
    return get(a, ra, b - a, (ra * ra - rb * rb + ((b - a) & (b - a))) / 2);
}
bool icl(P a, double r, P b, P c) {
  return get(a, r, ~(c - b), (a - b) * (c - b));
}
bool ill(P a, P b, P c, P d) {
  double d0, d1, d2;
  d0 = (b - a) * (d - c);
  d1 = (c - a) * (d - c);
  d2 = (c - a) * (b - a);
  if (d0 > -1E-8 && d0 < 1E-8)
    return d1 > -1E-8 && d1 < 1E-8 && d2 > -1E-8 && d2 < 1E-8 &&
           (((b - c) & (b - d)) < 1E-8 || ((a - c) & (a - d)) < 1E-8 ||
            ((c - a) & (c - b)) < 1E-8 || ((d - a) & (d - b)) < 1E-8);
  if (d0 < 0) {
    d0 = -d0;
    d1 = -d1;
    d2 = -d2;
  }
  p1 = a + (b - a) * (d1 / d0);
  return 1;
}
struct T {
  P a, b;
  double r;
  int t;
  T() {}
  T(P a, P b, double r, int t) : a(a), b(b), r(r), t(t) {}
};
vector<P> p;
void add(T a, T b) {
  if (!a.t && !b.t) {
    if (ill(a.a, a.b, b.a, b.b)) p.push_back(p1);
  } else if (!a.t && b.t) {
    if (icl(b.a, b.r, a.a, a.b)) {
      p.push_back(p1);
      p.push_back(p2);
    }
  } else if (a.t && !b.t) {
    if (icl(a.a, a.r, b.a, b.b)) {
      p.push_back(p1);
      p.push_back(p2);
    }
  } else {
    if (icc(a.a, a.r, b.a, b.r)) {
      p.push_back(p1);
      p.push_back(p2);
    }
  }
}
T sol(P a, double ra, P b, double rb) {
  if (ra + 1E-8 < rb) return sol(b, rb, a, ra);
  if (ra - 1E-8 < rb) return T((a + b) * 0.5, (a + b) * 0.5 + ~(b - a), 0, 0);
  double x, y;
  x = ra / (ra + rb);
  y = ra / (ra - rb);
  return T(a + (b - a) * ((x + y) / 2), a, !(b - a) * ((y - x) / 2), 1);
}
int main() {
  int i, j;
  P a, b, c, t;
  double ra, rb, rc, v, va, vb, vc;
  scanf("%lf%lf%lf", &a.x, &a.y, &ra);
  scanf("%lf%lf%lf", &b.x, &b.y, &rb);
  scanf("%lf%lf%lf", &c.x, &c.y, &rc);
  add(sol(a, ra, b, rb), sol(a, ra, c, rc));
  for (j = -1, v = -1, i = 0; i < p.size(); i++) {
    va = ra / !(p[i] - a);
    vb = rb / !(p[i] - b);
    vc = rc / !(p[i] - c);
    if (fabs(va - vb) < 1E-8 && fabs(va - vc) < 1E-8) {
      if (va > v) {
        v = va;
        j = i;
      }
    }
  }
  if (j != -1) printf("%.5lf %.5lf\n", p[j].x, p[j].y);
  return 0;
}