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 = 0.0001;
struct point {
  double x, y;
  point(double _x, double _y) : x(_x), y(_y) {}
  point() {}
  inline double len() { return sqrt(x * x + y * y); }
  inline double operator^(point p) { return x * p.x + y * p.y; }
  inline double operator*(point p) { return x * p.y - y * p.x; }
  inline point operator-(point p) { return point(x - p.x, y - p.y); }
  inline point operator*(double a) { return point(x * a, y * a); }
  inline point operator+(point p) { return point(x + p.x, y + p.y); }
  inline point normalise() { return point(x / len(), y / len()); }
  inline void resize(double newLen) {
    double a = newLen / len();
    x *= a;
    y *= a;
  }
};
ostream& operator<<(ostream& out, point& p) {
  out << p.x << " " << p.y;
  return out;
}
istream& operator>>(istream& in, point& p) {
  in >> p.x >> p.y;
  return in;
}
struct line {
  point A, l;
  line() = default;
  line(point _A, point _l) : A(_A), l(_l) { l = l.normalise(); }
  line(double _A, double _B, double _C) : l(-_B, _A) {
    l = l.normalise();
    if (abs(_B) < eps) {
      A.y = 0;
      A.x = -_C / _A;
    } else {
      A.x = 0;
      A.y = -_C / _B;
    }
  }
  inline double distance(point p) { return abs(l * (A - p)); }
  bool is_inside(point p) { return distance(p) < eps; }
  point perpendicular() { return point(-l.y, l.x); }
  vector<point> interseption(line L) {
    vector<point> ans;
    if (abs(l * L.l) < eps) {
      if (abs((A - L.A) * l) < eps) {
        ans.push_back(A);
        ans.push_back(A + l);
        ans.push_back(A + l * 2);
        return ans;
      } else
        return ans;
    } else {
      ans.push_back(A + l * ((L.l * (A - L.A)) / (l * L.l)));
      return ans;
    }
  }
};
istream& operator>>(istream& in, line& L) {
  double A, B, C;
  in >> A >> B >> C;
  L = line(A, B, C);
  return in;
}
ostream& operator<<(ostream& out, line& L) {
  out << L.A << " " << L.l;
  return out;
}
struct circle {
  point O;
  double R;
  circle() = default;
  circle(point _O, double _R) : O(_O), R(_R) {}
  vector<point> interseption(line L) {
    vector<point> ans;
    if (L.distance(O) < R) {
      double len = L.distance(O);
      point vec = L.perpendicular(), K;
      vec.resize(len);
      if (L.is_inside(O + vec))
        K = O + vec;
      else
        K = O - vec;
      len = sqrt(R * R - len * len);
      vec = L.l;
      vec.resize(len);
      ans.push_back(K + vec);
      ans.push_back(K - vec);
      return ans;
    } else if (abs(L.distance(O) - R) < eps) {
      point vec = L.perpendicular();
      vec.resize(R);
      if (L.is_inside(O + vec))
        ans.push_back(O + vec);
      else
        ans.push_back(O - vec);
      return ans;
    } else
      return ans;
  }
  vector<point> interseption(circle c) {
    return interseption(line(2 * (O.x - c.O.x), 2 * (O.y - c.O.y),
                             c.O.x * c.O.x - O.x * O.x + c.O.y * c.O.y -
                                 O.y * O.y + R * R - c.R * c.R));
  }
  line sameAngleSameRadius(circle c) {
    return line(-2 * (O.x - c.O.x), -2 * (O.y - c.O.y), (O ^ O) - (c.O ^ c.O));
  }
  bool sameRadius(circle c) { return abs(R - c.R) < eps; }
  circle sameAngleDiffrentRadius(circle c) {
    circle ans;
    ans.O.x = (O.x * c.R * c.R - c.O.x * R * R) / (c.R * c.R - R * R);
    ans.O.y = (O.y * c.R * c.R - c.O.y * R * R) / (c.R * c.R - R * R);
    ans.R =
        sqrt((R * R * (c.O ^ c.O) - c.R * c.R * (O ^ O)) / (c.R * c.R - R * R) +
             (ans.O ^ ans.O));
    return ans;
  }
};
istream& operator>>(istream& in, circle& c) {
  in >> c.O >> c.R;
  return in;
}
ostream& operator<<(ostream& out, circle& c) {
  out << c.O << " " << c.R;
  return out;
}
int main() {
  point ans;
  circle c, c1, c2, c3, c4;
  cin >> c >> c1 >> c2;
  line l1, l2;
  vector<point> p;
  if (c.sameRadius(c2)) swap(c1, c2);
  if (c1.sameRadius(c2)) swap(c, c2);
  if (c.sameRadius(c1)) {
    l1 = c.sameAngleSameRadius(c1);
    if (c.sameRadius(c2)) {
      l2 = c.sameAngleSameRadius(c2);
      p = l1.interseption(l2);
    } else {
      c3 = c.sameAngleDiffrentRadius(c2);
      p = c3.interseption(l1);
    }
  } else {
    c4 = c.sameAngleDiffrentRadius(c1);
    c3 = c.sameAngleDiffrentRadius(c2);
    p = c3.interseption(c4);
  }
  cout.precision(8);
  cout << fixed;
  if (p.size() > 0) {
    ans = p[0];
    for (size_t i = 1; i < p.size(); i++) {
      if ((c.O - p[i]).len() < (c.O - ans).len()) ans = p[i];
    }
    cout << ans;
  }
  return 0;
}