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 int moves[][2] = {{0, 1}, {-1, 0}, {0, -1}, {1, 0}};
class Point {
 public:
  Point() {}
  Point(double x, double y) {
    this->x = x;
    this->y = y;
  }
  double dist(Point p) {
    double x = p.x - this->x;
    double y = p.y - this->y;
    return sqrt(x * x + y * y);
  }
  bool operator==(Point a) { return a.x == this->x && a.y == this->y; }
  void read() { scanf("%lf%lf", &x, &y); }
  void print() {
    if (fabs(y) < 1e-5) y = 0.0;
    if (fabs(x) < 1e-5) x = 0.0;
    printf("%.5lf %.5lf\n", x, y);
  }
  double x, y;
};
class Circle {
 public:
  Circle() {}
  Circle(Point c, double r) {
    this->c = c;
    this->r = r;
  }
  bool intersects(Circle k, Point &T1, Point &T2) {
    double q2 = k.c.y, q1 = this->c.y;
    double p2 = k.c.x, p1 = this->c.x;
    double r2 = k.r, r1 = this->r;
    double A = 2 * (q2 - q1);
    double B = 2 * (p2 - p1);
    double C = p1 * p1 - p2 * p2 + q1 * q1 - q2 * q2 + r2 * r2 - r1 * r1;
    double AA = A * A + B * B;
    double BB = 2 * A * C + 2 * A * p2 * B - 2 * q2 * B * B;
    double CC = B * B * q2 * q2 - r2 * r2 * B * B + (C + p2 * B) * (C + p2 * B);
    double D = BB * BB - 4 * AA * CC;
    if (D < -1e-5) {
      return false;
    }
    if (D < 1e-5) {
      T1.y = -BB * .5 / AA;
      T1.x = -(C + A * T1.y) / B;
      T2 = T1;
    } else {
      double sqroot = sqrt(D);
      T1.y = (-BB + sqroot) / (2.0 * AA);
      T1.x = -(C + A * T1.y) / B;
      T2.y = (-BB - sqroot) / (2.0 * AA);
      T2.x = -(C + A * T2.y) / B;
    }
    return true;
  }
  bool contains(Point P) {
    double X = P.x - c.x;
    X *= X;
    double Y = P.y - c.y;
    Y *= Y;
    return fabs(X + Y - r * r) < 1e-5;
  }
  void read() {
    c.read();
    scanf("%lf", &r);
  }
  Point c;
  double r;
};
class Line {
 public:
  Line() {}
  Line(double A, double B, double C) {
    this->A = A;
    this->B = B;
    this->C = C;
  }
  Line(Point a, Point b) {
    double x1 = a.x, x2 = b.x;
    double y1 = a.y, y2 = b.y;
    A = y1 - y2;
    B = x2 - x1;
    C = x1 * y2 - y1 * x2;
  }
  Line normalna(Point p) {
    double D = B * p.x - A * p.y;
    Line L(-B, A, D);
    return L;
  }
  int intersects(Line p, Point &T) {
    double det = A * p.B - B * p.A;
    if (fabs(det) < 1e-5) return 0;
    T.x = B * p.C - p.B * C;
    T.x /= det;
    T.y = p.A * C - p.C * A;
    T.y /= det;
    return 1;
  }
  bool intersects(Circle k, Point &T1, Point &T2) {
    double p = k.c.x, q = k.c.y;
    double r = k.r;
    if (fabs(A) < 1e-5) {
      T1.y = -C / B;
      double BB = -2 * p;
      double CC = (T1.y - q) * (T1.y - q) - r * r + p * p;
      double D = BB * BB - 4 * CC;
      if (D < -1e-5) {
        return false;
      } else if (D < 1e-5) {
        double sqroot = sqrt(D);
        T1.x = -BB * 0.5;
        T2 = T1;
        return true;
      } else {
        double sqroot = sqrt(D);
        T1.x = (-BB - sqroot) * 0.5;
        T2.x = (-BB + sqroot) * 0.5;
        T2.y = T1.y;
        return true;
      }
    }
    double AA = B * B / (A * A) + 1;
    double BB = 2 * B * C / (A * A) + 2 * B * p / A - 2 * q;
    double CC = C * C / (A * A) + 2 * C * p / A + p * p + q * q - r * r;
    double D = BB * BB - 4 * AA * CC;
    if (D < -1e-5) {
      return false;
    } else if (D < 1e-5) {
      T1.y = -BB / (2 * AA);
      T1.x = -(C + B * T1.y) / A;
      T2 = T1;
      return true;
    } else {
      double sqroot = sqrt(D);
      T1.y = (-BB + sqroot) / (2 * AA);
      T1.x = -(C + B * T1.y) / A;
      T2.y = (-BB - sqroot) / (2 * AA);
      T2.x = -(C + B * T2.y) / A;
      return true;
    }
  }
  double A, B, C;
};
Circle makeCircle(Circle k1, Circle k2) {
  double A = k2.r * k2.r - k1.r * k1.r;
  double B = 2 * (k2.c.x * k1.r * k1.r - k1.c.x * k2.r * k2.r) / A;
  double C = 2 * (k2.c.y * k1.r * k1.r - k1.c.y * k2.r * k2.r) / A;
  double D = (k2.r * k2.r * k1.c.x * k1.c.x - k1.r * k1.r * k2.c.x * k2.c.x +
              k2.r * k2.r * k1.c.y * k1.c.y - k1.r * k1.r * k2.c.y * k2.c.y) /
             A;
  double R = sqrt((B * B + C * C) * 0.25 - D);
  return Circle(Point(-B * 0.5, -C * 0.5), R);
}
Line makeLine(Circle k1, Circle k2) {
  Point m;
  m.x = (k1.c.x + k2.c.x) * 0.5;
  m.y = (k1.c.y + k2.c.y) * 0.5;
  Line l(k1.c, k2.c);
  return l.normalna(m);
}
Point getBetter(Point A, Point B, Circle k) {
  double alpha1 = asin(k.r / A.dist(k.c));
  double alpha2 = asin(k.r / B.dist(k.c));
  if (alpha1 > alpha2) return A;
  return B;
}
int main() {
  Circle k[4];
  for (int i = 1; i <= 3; i++) {
    k[i].read();
  }
  if (k[1].r == k[2].r) {
    Line l1 = makeLine(k[1], k[2]);
    if (k[2].r == k[3].r) {
      Line l2 = makeLine(k[2], k[3]);
      Point T;
      if (l1.intersects(l2, T)) {
        T.print();
      }
    } else {
      Circle k1 = makeCircle(k[2], k[3]);
      Point T1, T2;
      if (l1.intersects(k1, T1, T2)) {
        getBetter(T1, T2, k[1]).print();
      }
    }
  } else {
    Circle k1 = makeCircle(k[1], k[2]);
    if (k[2].r == k[3].r) {
      Line l1 = makeLine(k[2], k[3]);
      Point T1, T2;
      if (l1.intersects(k1, T1, T2)) {
        getBetter(T1, T2, k[1]).print();
      }
    } else {
      Circle k2 = makeCircle(k[2], k[3]);
      Point T1, T2;
      if (k2.intersects(k1, T1, T2)) {
        getBetter(T1, T2, k[1]).print();
      }
    }
  }
  return 0;
}