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>
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
using namespace std;
const double eps = 1e-10;
const double pi = acos(-1.0);
int sgn(double x) { return (x > eps) - (x < -eps); }
int cmp(double x, double y) { return sgn(x - y); }
struct P {
  double x, y;
  P() : x(0), y(0) {}
  P(double a, double b) : x(a), y(b) {}
  void in() { scanf("%lf%lf", &x, &y); }
  P operator+(const P &a) const { return P(x + a.x, y + a.y); }
  P operator-(const P &a) const { return P(x - a.x, y - a.y); }
  P operator*(const double &a) const { return P(x * a, y * a); }
  P operator/(const double &a) const { return P(x / a, y / a); }
  double norm() { return sqrt(x * x + y * y); }
};
double dot(P a, P b) { return a.x * b.x + a.y * b.y; }
double cross(P a, P b) { return a.x * b.y - a.y * b.x; }
P rotate_point(P a, double sita) {
  double x = a.x, y = a.y;
  return P(x * cos(sita) - y * sin(sita), x * sin(sita) + y * cos(sita));
}
struct L {
  P a, b;
  L() {}
  L(P x, P y) : a(x), b(y) {}
};
L getmidline(P a, P b) {
  P c = (a + b) / 2.0;
  P v = rotate_point(b - a, pi / 2);
  return L(c, c + v);
}
bool l_cross(L l1, L l2, P &a) {
  if (!sgn(cross(l1.a - l1.b, l2.a - l2.b))) return 0;
  double s1 = cross(l1.a - l2.a, l2.b - l2.a);
  double s2 = cross(l1.b - l2.a, l2.b - l2.a);
  a = (l1.b * s1 - l1.a * s2) / (s1 - s2);
  return 1;
}
void getcircle(P o1, double r1, P o2, double r2, P &o, double &r) {
  P v = o2 - o1;
  P a = o1 + v * (r1 / (r1 + r2));
  P b = o1 + v * (r1 / (r1 - r2));
  r = (a - b).norm() / 2.0;
  o = (a + b) / 2.0;
}
double myacos(double x) {
  if (x > 1.0) return acos(1.0);
  if (x < -1.0) return acos(-1.0);
  return acos(x);
}
int main() {
  vector<P> o(3);
  vector<double> r(3);
  for (int i = 0; i <= 2; i++) o[i].in(), scanf("%lf", &r[i]);
  if (r[0] == r[1] && r[0] == r[2]) {
    if (sgn(cross(o[2] - o[0], o[1] - o[0])) == 0) return 0;
    L l1 = getmidline(o[0], o[1]);
    L l2 = getmidline(o[0], o[2]);
    P c;
    assert(l_cross(l1, l2, c));
    printf("%.5f %.5f\n", c.x, c.y);
    return 0;
  }
  P o1, o2;
  double r1, r2;
  if (r[0] != r[1] && r[0] != r[2])
    getcircle(o[0], r[0], o[1], r[1], o1, r1),
        getcircle(o[0], r[0], o[2], r[2], o2, r2);
  if (r[1] != r[0] && r[1] != r[2])
    getcircle(o[1], r[1], o[0], r[0], o1, r1),
        getcircle(o[1], r[1], o[2], r[2], o2, r2);
  if (r[2] != r[0] && r[2] != r[1])
    getcircle(o[2], r[2], o[0], r[0], o1, r1),
        getcircle(o[2], r[2], o[1], r[1], o2, r2);
  if (cmp(r1 + r2, (o1 - o2).norm()) < 0) return 0;
  if (cmp(r1 - r2, (o1 - o2).norm()) > 0) return 0;
  if (cmp(r2 - r1, (o1 - o2).norm()) > 0) return 0;
  double c = (o2 - o1).norm();
  double theta = myacos((c * c + r1 * r1 - r2 * r2) / (2.0 * r1 * c));
  P v = (o2 - o1) / c;
  P p1 = o1 + rotate_point(v, theta) * r1;
  P p2 = o1 + rotate_point(v, -theta) * r1;
  if ((p1 - o[0]).norm() < (p2 - o[0]).norm())
    printf("%.5f %.5f\n", p1.x, p1.y);
  else
    printf("%.5f %.5f\n", p2.x, p2.y);
  return 0;
}