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 point {
  double x, y;
};
double r[3], a[3];
point c[3];
double fa;
double f(point x) {
  double l;
  for (int k = 0; k < 3; k++) {
    l = sqrt((x.x - c[k].x) * (x.x - c[k].x) + (x.y - c[k].y) * (x.y - c[k].y));
    if (r[k] > l)
      a[k] = 100;
    else
      a[k] = asin(r[k] / l);
    fa = min(a[0], min(a[1], a[2]));
  }
  return max(fabs(a[0] - a[1]), max(fabs(a[1] - a[2]), fabs(a[2] - a[0])));
}
double al = 1, be = 0.5, ga = 2;
point operator+(point a, point b) {
  point c = {a.x + b.x, a.y + b.y};
  return c;
}
point operator-(point a, point b) {
  point c = {a.x - b.x, a.y - b.y};
  return c;
}
point operator/(point a, double b) {
  a.x /= b;
  a.y /= b;
  return a;
}
point operator*(point a, double b) {
  a.x *= b;
  a.y *= b;
  return a;
}
point operator*(double b, point a) {
  a.x *= b;
  a.y *= b;
  return a;
}
double len(point a, point b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
point simplex(double x, double y, double h) {
  point a = {x, y}, b = {x + h, y}, c = {x, y + h};
  double fa = f(a), fb = f(b), fc = f(c);
  int g = 0;
  for (int i = 0; i < 100; i++) {
    if (fa > fb) {
      swap(fa, fb);
      swap(a, b);
    }
    if (fa > fc) {
      swap(fa, fc);
      swap(a, c);
    }
    if (fb > fc) {
      swap(fb, fc);
      swap(b, c);
    }
    if (g == 1) {
      b = a + (b - a) / 2;
      c = a + (c - a) / 2;
    }
    if (len(a, b) < 1.0e-6 && len(a, c) < 1.0e-6 && len(b, c) < 1.0e-6) {
      break;
    }
    if (fabs(x - a.x) > 2 * h || fabs(y - a.y) > 2 * h) break;
    point d = (a + b) / 2, r = (1 + al) * d - al * c;
    double fr = f(r);
    if (fr < fa) {
      point e = (1 - ga) * d + ga * r;
      double fe = f(e);
      if (fe < fr) {
        c = e;
        fc = fe;
      } else {
        c = r;
        fc = fr;
      }
      continue;
    } else if (fr < fb) {
      c = r;
      fc = fr;
      continue;
    } else if (fr < fc) {
      swap(fr, fc);
      swap(r, c);
    }
    point s = (1 - be) * d + be * c;
    double fs = f(s);
    g = 0;
    if (fs < fc) {
      c = s;
      fc = fs;
    } else
      g = 1;
  }
  return a;
}
int main() {
  for (int i = 0; i < 3; i++) scanf("%lf %lf %lf", &c[i].x, &c[i].y, &r[i]);
  point a, b = {0, 0};
  double fm = 0;
  for (int i = -1000; i < 1000; i += 20)
    for (int j = -1000; j < 1000; j += 20) {
      a = simplex(i, j, 20);
      if (fa > fm && f(a) < 1.0e-6) {
        fm = fa;
        b = a;
      }
    }
  if (f(b) < 1.0e-6) printf("%lf %lf\n", b.x, b.y);
  return 0;
}