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-8;
struct pt {
  double x, y;
  pt() {}
  pt(double x, double y) : x(x), y(y) {}
};
double len(pt a) { return sqrt(a.x * a.x + a.y * a.y); }
istream& operator>>(istream& cin, pt& a) {
  cin >> a.x >> a.y;
  return cin;
}
ostream& operator<<(ostream& cout, pt a) {
  cout.precision(10);
  cout << fixed;
  cout << a.x << ' ' << a.y << endl;
  return cout;
}
pt operator-(pt a, pt b) { return pt(a.x - b.x, a.y - b.y); }
pt operator+(pt a, pt b) { return pt(a.x + b.x, a.y + b.y); }
pt operator*(pt a, double b) { return pt(a.x * b, a.y * b); }
pt operator/(pt a, double b) { return pt(a.x / b, a.y / b); }
struct line {
  double a, b, c;
  void norm() {
    double d = sqrt(a * a + b * b);
    a /= d;
    b /= d;
    c /= d;
  }
  line() {}
  line(double a, double b, double c) : a(a), b(b), c(c) { norm(); }
};
istream& operator>>(istream& cin, line& a) {
  cin >> a.a >> a.b >> a.c;
  a.norm();
  return cin;
}
ostream& operator<<(ostream& cout, line a) {
  cout.precision(5);
  cout << fixed;
  cout << a.a << ' ' << a.b << ' ' << a.c << endl;
  return cout;
}
line serper(pt a, pt b) {
  line t = line((a - b).x, (a - b).y, 0);
  pt c = (a + b) / 2.0;
  t.c = -t.a * c.x - t.b * c.y;
  return t;
}
pt cross(line a, line b) {
  if (fabs(a.a * b.b - a.b * b.a) < eps) throw 1;
  return pt(-(a.c * b.b - b.c * a.b) / (a.a * b.b - a.b * b.a),
            -(a.a * b.c - b.a * a.c) / (a.a * b.b - a.b * b.a));
}
struct circle {
  double x, y, r;
  circle() {}
  circle(double x, double y, double r) : x(x), y(y), r(r) {}
};
istream& operator>>(istream& cin, circle& a) {
  cin >> a.x >> a.y >> a.r;
  return cin;
}
ostream& operator<<(ostream& cout, circle a) {
  cout.precision(5);
  cout << fixed;
  cout << a.x << ' ' << a.y << ' ' << a.r << endl;
  return cout;
}
circle good(circle u, circle v) {
  pt a1, a2;
  double a = sqrt((u.x - v.x) * (u.x - v.x) + (u.y - v.y) * (u.y - v.y));
  double x = a * u.r / (u.r + v.r);
  a1 = pt(u.x, u.y) + (pt(v.x, v.y) - pt(u.x, u.y)) * (x / a);
  x = a * u.r / (u.r - v.r);
  a2 = pt(u.x, u.y) + (pt(v.x, v.y) - pt(u.x, u.y)) * (x / a);
  return circle(((a1 + a2) / 2).x, ((a1 + a2) / 2).y, len(a1 - a2) / 2);
}
double angle(pt a, circle b) {
  double r = b.r, R = len(a - pt(b.x, b.y));
  if (r > R) return 0;
  return 2.0 * asin(r / R);
}
void solve(circle a, circle b, circle c) {
  b.x -= a.x;
  c.x -= a.x;
  b.y -= a.y;
  c.y -= a.y;
  if (b.x * b.x + b.y * b.y > (a.r + b.r) * (a.r + b.r) + eps) exit(0);
  double cosa = (a.r * a.r + b.x * b.x + b.y * b.y - b.r * b.r) /
                (2.0 * a.r * sqrt(b.x * b.x + b.y * b.y));
  if (fabs(cosa) > 1) exit(0);
  pt p(b.x * cosa - b.y * sqrt(1 - cosa * cosa),
       b.x * sqrt(1 - cosa * cosa) + b.y * cosa);
  pt q(b.x * cosa + b.y * sqrt(1 - cosa * cosa),
       -b.x * sqrt(1 - cosa * cosa) + b.y * cosa);
  p = p * (a.r / len(p));
  q = q * (a.r / len(q));
  if (angle(p, c) > angle(q, c))
    cout << p + pt(a.x, a.y);
  else
    cout << q + pt(a.x, a.y);
  return;
}
int main() {
  circle a, b, c;
  cin >> a >> b >> c;
  if (a.r == b.r && a.r == c.r) {
    cout << cross(serper(pt(a.x, a.y), pt(b.x, b.y)),
                  serper(pt(a.x, a.y), pt(c.x, c.y)));
    return 0;
  }
  if (a.r == b.r) swap(a, c);
  if (a.r == c.r) swap(a, b);
  circle d = good(a, b), e = good(a, c);
  solve(d, e, a);
}