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-9;
struct circle {
  complex<double> o;
  double r;
};
struct line {
  double a, b, c;
};
double dis(complex<double> &a, complex<double> &b) {
  complex<double> tmp = a - b;
  double d = tmp.real() * tmp.real() + tmp.imag() * tmp.imag();
  if (d < eps) d = 0.;
  return sqrt(d);
}
line find_line(complex<double> &a, complex<double> &b) {
  line ans;
  ans.a = b.imag() - a.imag();
  ans.b = a.real() - b.real();
  ans.c = b.real() * a.imag() - a.real() * b.imag();
  return ans;
}
complex<double> intersect(line &l1, line &l2) {
  double x, y;
  x = (-l1.c * l2.b + l2.c * l1.b) / (l1.a * l2.b - l2.a * l1.b);
  y = (-l1.a * l2.c + l2.a * l1.c) / (l1.a * l2.b - l2.a * l1.b);
  complex<double> ans(x, y);
  return ans;
}
vector<complex<double> > intersect(circle &c, line &l) {
  vector<complex<double> > ans;
  complex<double> p, p1, v;
  line tmp;
  double d;
  p1 = c.o + complex<double>(l.a, l.b);
  tmp = find_line(c.o, p1);
  p = intersect(l, tmp);
  d = dis(c.o, p);
  if (fabs(d - c.r) < eps) {
    ans.push_back(p);
    return ans;
  }
  if (c.r < d) return ans;
  v = complex<double>(-l.b, l.a);
  v /= abs(v);
  v *= sqrt(c.r * c.r - d * d);
  ans.push_back(p + v);
  ans.push_back(p - v);
  return ans;
}
vector<complex<double> > intersect(circle &c1, circle &c2) {
  vector<complex<double> > ans;
  line tmp;
  double d = dis(c1.o, c2.o);
  if (c1.r + c2.r + eps < d || c1.r + d + eps < c2.r || c2.r + d + eps < c1.r)
    return ans;
  tmp.a = -2. * (c1.o.real() - c2.o.real());
  tmp.b = -2. * (c1.o.imag() - c2.o.imag());
  tmp.c = c1.o.real() * c1.o.real() - c2.o.real() * c2.o.real() +
          c1.o.imag() * c1.o.imag() - c2.o.imag() * c2.o.imag() - c1.r * c1.r +
          c2.r * c2.r;
  return intersect(c1, tmp);
}
int get_figure(circle &c1, circle &c2, circle &c_ans, line &l_ans) {
  double a, b, c, A, B, C, D, E, x, y;
  if (fabs(c1.r - c2.r) < eps) {
    a = -2. * c2.r * c2.r * c1.o.real() + 2. * c1.r * c1.r * c2.o.real();
    b = -2. * c2.r * c2.r * c1.o.imag() + 2. * c1.r * c1.r * c2.o.imag();
    c = c2.r * c2.r * c1.o.real() * c1.o.real() -
        c1.r * c1.r * c2.o.real() * c2.o.real() +
        c2.r * c2.r * c1.o.imag() * c1.o.imag() -
        c1.r * c1.r * c2.o.imag() * c2.o.imag();
    l_ans.a = a;
    l_ans.b = b;
    l_ans.c = c;
    return 0;
  }
  A = C = c2.r * c2.r - c1.r * c1.r;
  B = -2. * c2.r * c2.r * c1.o.real() + 2. * c1.r * c1.r * c2.o.real();
  D = -2. * c2.r * c2.r * c1.o.imag() + 2. * c1.r * c1.r * c2.o.imag();
  E = c2.r * c2.r * c1.o.real() * c1.o.real() -
      c1.r * c1.r * c2.o.real() * c2.o.real() +
      c2.r * c2.r * c1.o.imag() * c1.o.imag() -
      c1.r * c1.r * c2.o.imag() * c2.o.imag();
  B /= A;
  D /= A;
  E /= A;
  A = C = 1.;
  x = -B / 2.;
  y = -D / 2.;
  c_ans.o = complex<double>(x, y);
  c_ans.r = B * B / 4. + D * D / 4. - E;
  if (fabs(c_ans.r) < eps) c_ans.r = 0.;
  if (c_ans.r < 0.) return -1;
  c_ans.r = sqrt(c_ans.r);
  return 1;
}
istream &operator>>(istream &s, complex<double> &a) {
  double x, y;
  s >> x >> y;
  a = complex<double>(x, y);
  return s;
}
istream &operator>>(istream &s, circle &c) {
  s >> c.o >> c.r;
  return s;
}
int main() {
  circle c1, c2, c3, b1, b2;
  line a1, a2;
  vector<complex<double> > goods;
  complex<double> ans;
  int f1, f2;
  double d1, d2;
  cin >> c1 >> c2 >> c3;
  f1 = get_figure(c1, c2, b1, a1);
  f2 = get_figure(c1, c3, b2, a2);
  if (!f1 && !f2)
    goods.push_back(intersect(a1, a2));
  else if (!f1 && f2 == 1)
    goods = intersect(b2, a1);
  else if (f1 == 1 && !f2)
    goods = intersect(b1, a2);
  else if (f1 == 1 && f2 == 1)
    goods = intersect(b1, b2);
  if (goods.empty()) {
    return 0;
  }
  ans = goods[0];
  if (goods.size() > 1) {
    d1 = dis(goods[0], c1.o);
    d2 = dis(goods[1], c1.o);
    if (d2 < d1) ans = goods[1];
  }
  printf("%.12lf %.12lf", ans.real(), ans.imag());
}