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;
double eps = 0.0000000001;
struct Point {
  double x, y;
} Inter;
struct Line {
  double a, b, c;
} LA, LB;
struct Circle {
  double x, y, r;
} CA, CB, A, B, C;
Line GetLine(Circle A, Circle B) {
  Line res;
  Point X;
  X.x = (A.x + B.x) / 2.0;
  X.y = (A.y + B.y) / 2.0;
  res.a = A.x - B.x;
  res.b = A.y - B.y;
  res.c = -res.a * X.x - res.b * X.y;
  return res;
}
Circle GetCircle(Circle A, Circle B) {
  Circle res;
  res.x = -(B.r * B.r * A.x - A.r * A.r * B.x) / (A.r * A.r - B.r * B.r);
  res.y = -(B.r * B.r * A.y - A.r * A.r * B.y) / (A.r * A.r - B.r * B.r);
  res.r = A.r * B.r *
          sqrt(((A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y))) /
          fabs((A.r * A.r - B.r * B.r));
  return res;
}
double dist(Point a, Circle b) {
  double dx = a.x - b.x;
  double dy = a.y - b.y;
  return sqrt(dx * dx + dy * dy);
}
double dist(Circle a, Circle b) {
  double dx = a.x - b.x;
  double dy = a.y - b.y;
  return sqrt(dx * dx + dy * dy);
}
bool eq(double a, double b) { return fabs(a - b) < eps; }
bool LineInter(Line A, Line B) {
  if (eq(A.a, 0.0)) {
    Inter.y = -A.c / A.b;
    if (eq(B.a, 0.0)) return false;
    Inter.x = -(B.b * Inter.y + B.c) / B.a;
  } else {
    if (eq((A.a * B.b - A.b * B.a), 0.0)) return false;
    Inter.y = -(A.a * B.c - A.c * B.a) / (A.a * B.b - A.b * B.a);
    Inter.x = -(A.b * Inter.y + A.c) / A.a;
  }
  return true;
}
void solve(int type) {
  if (type == 0) {
    LA = GetLine(A, B);
    LB = GetLine(A, C);
    if (LineInter(LA, LB)) printf("%lf %lf", Inter.x, Inter.y);
  } else if (type == 1) {
    if (eq(A.r, B.r)) {
      LA = GetLine(A, B);
      CA = GetCircle(A, C);
    } else {
      LA = GetLine(A, C);
      CA = GetCircle(A, B);
    }
    double dag = fabs(LA.a * CA.x + LA.b * CA.y + LA.c) /
                 sqrt(LA.a * LA.a + LA.b * LA.b);
    if (eq(dag, CA.r)) {
      LB.a = -LA.b;
      LB.b = LA.a;
      LB.c = -LB.a * CA.x - LB.b * CA.y;
      LineInter(LA, LB);
      printf("%lf %lf", Inter.x, Inter.y);
    } else if (dag < CA.r) {
      LB.a = -LA.b;
      LB.b = LA.a;
      LB.c = -LB.a * CA.x - LB.b * CA.y;
      LineInter(LA, LB);
      dag = sqrt(CA.r * CA.r - dag * dag);
      Point l1, l2;
      double len = sqrt(LB.a * LB.a + LB.b * LB.b);
      l1.x = Inter.x + dag * LB.a / len;
      l1.y = Inter.y + dag * LB.b / len;
      l2.x = Inter.x - dag * LB.a / len;
      l2.y = Inter.y - dag * LB.b / len;
      if (asin(A.r / dist(l1, A)) < asin(A.r / dist(l2, A))) swap(l1, l2);
      printf("%lf %lf", l1.x, l1.y);
    }
  } else {
    CA = GetCircle(A, B);
    CB = GetCircle(A, C);
    double R = dist(CA, CB);
    if ((eq(R, CA.r + CB.r) || R < CA.r + CB.r) &&
        (eq(R, fabs(CA.r - CB.r)) || R > fabs(CA.r - CB.r))) {
      if (eq(R, CA.r + CB.r)) {
        Point vect;
        vect.x = CB.x - CA.x;
        vect.y = CB.y - CA.y;
        double len = sqrt(vect.x * vect.x + vect.y * vect.y);
        Point l1;
        l1.x = CA.x + CA.r * vect.x / len;
        l1.y = CA.y + CA.r * vect.y / len;
        printf("%lf %lf", l1.x, l1.y);
      } else if (eq(R, fabs(CA.r - CB.r))) {
        if (CA.r < CB.r) swap(CA, CB);
        Point vect;
        vect.x = CB.x - CA.x;
        vect.y = CB.y - CA.y;
        double len = sqrt(vect.x * vect.x + vect.y * vect.y);
        Point l1;
        l1.x = CA.x + CA.r * vect.x / len;
        l1.y = CA.y + CA.r * vect.y / len;
        printf("%lf %lf", l1.x, l1.y);
      } else {
        double a = (CA.r * CA.r - CB.r * CB.r + R * R) / (2 * R);
        Point vect;
        vect.x = CB.x - CA.x;
        vect.y = CB.y - CA.y;
        double len = sqrt(vect.x * vect.x + vect.y * vect.y);
        Point mid, l1, l2;
        mid.x = CA.x + a * vect.x / len;
        mid.y = CA.y + a * vect.y / len;
        swap(vect.x, vect.y);
        vect.x = -vect.x;
        double h = sqrt(CA.r * CA.r - a * a);
        l1.x = mid.x + h * vect.x / len;
        l1.y = mid.y + h * vect.y / len;
        l2.x = mid.x - h * vect.x / len;
        l2.y = mid.y - h * vect.y / len;
        if (asin(A.r / dist(l1, A)) < asin(A.r / dist(l2, A))) swap(l1, l2);
        printf("%lf %lf", l1.x, l1.y);
      }
    }
  }
}
int main() {
  scanf("%lf%lf%lf", &A.x, &A.y, &A.r);
  scanf("%lf%lf%lf", &B.x, &B.y, &B.r);
  scanf("%lf%lf%lf", &C.x, &C.y, &C.r);
  int a = 0;
  if (A.r != B.r) a++;
  if (A.r != C.r) a++;
  solve(a);
  return 0;
}