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>
long long int x[3], y[3], R[3];
void swp(long long int *x, long long int *y) {
  *x ^= *y;
  *y ^= *x;
  *x ^= *y;
}
void SolveEqual() {
  long long int a11, a12, a21, a22;
  double q1, q2, detA, xa, ya;
  a11 = x[0] - x[1];
  a12 = y[0] - y[1];
  a21 = x[0] - x[2];
  a22 = y[0] - y[2];
  if (a11 * a22 - a12 * a21 == 0) return;
  q1 = (x[0] * x[0] - x[1] * x[1]) / 2.0 + (y[0] * y[0] - y[1] * y[1]) / 2.0;
  q2 = (x[0] * x[0] - x[2] * x[2]) / 2.0 + (y[0] * y[0] - y[2] * y[2]) / 2.0;
  detA = a11 * a22 - a12 * a21;
  xa = (q1 * a22 - q2 * a12) / detA;
  ya = (-q1 * a21 + q2 * a11) / detA;
  printf("%.5f %.5f", xa, ya);
}
void SolveNotEqual() {
  long long int ac1, ac2, bc1, bc2, mc1, mc2, n2c1, n2c2;
  double xc1, xc2, yc1, yc2, Rc1, Rc2, xa, ya, a, b, c, d, f, g, h, D, xa1, ya1,
      xa2, ya2;
  ac1 = x[1] * R[0] * R[0] - x[0] * R[1] * R[1];
  ac2 = x[2] * R[0] * R[0] - x[0] * R[2] * R[2];
  bc1 = R[0] * R[0] - R[1] * R[1];
  bc2 = R[0] * R[0] - R[2] * R[2];
  mc1 = y[1] * R[0] * R[0] - y[0] * R[1] * R[1];
  mc2 = y[2] * R[0] * R[0] - y[0] * R[2] * R[2];
  n2c1 = R[1] * R[1] *
         ((x[0] - x[1]) * (x[0] - x[1]) + (y[0] - y[1]) * (y[0] - y[1]));
  n2c2 = R[2] * R[2] *
         ((x[0] - x[2]) * (x[0] - x[2]) + (y[0] - y[2]) * (y[0] - y[2]));
  xc1 = (double)ac1 / bc1;
  xc2 = (double)ac2 / bc2;
  yc1 = (double)mc1 / bc1;
  yc2 = (double)mc2 / bc2;
  Rc1 = R[0] * sqrt(n2c1) / fabs(bc1);
  Rc2 = R[0] * sqrt(n2c2) / fabs(bc2);
  if (ac1 * bc2 == ac2 * bc1)
    if (mc1 * bc2 == mc2 * bc1)
      if (n2c1 * bc2 * bc2 == n2c2 * bc1 * bc1) {
        xa = xc1 + (x[0] - xc1) /
                       sqrt((x[0] - xc1) * (x[0] - xc1) +
                            (y[0] - yc1) * (y[0] - yc1)) *
                       Rc1;
        ya = yc1 + (y[0] - yc1) /
                       sqrt((x[0] - xc1) * (x[0] - xc1) +
                            (y[0] - yc1) * (y[0] - yc1)) *
                       Rc1;
        printf("%.5f %.5f", xa, ya);
        return;
      }
  if ((xc1 - xc2) * (xc1 - xc2) + (yc1 - yc2) * (yc1 - yc2) >
      (Rc1 + Rc2) * (Rc1 + Rc2) - 1e-10)
    return;
  a = 2 * (xc2 - xc1);
  b = 2 * (yc2 - yc1);
  c = -Rc1 * Rc1 + Rc2 * Rc2 + yc1 * yc1 - yc2 * yc2 + xc1 * xc1 - xc2 * xc2;
  if (ac1 * bc2 == ac2 * bc1) {
    ya = -c / b;
    if (Rc1 * Rc1 - (ya - yc1) * (ya - yc1) > 1e-10)
      xa = xc1 + sqrt(Rc1 * Rc1 - (ya - yc1) * (ya - yc1));
    else
      return;
    printf("%.5f %.5f", xa, ya);
    return;
  }
  d = c / a + xc1;
  f = b * b / a / a + 1;
  g = 2 * b * d / a - 2 * yc1;
  h = d * d + yc1 * yc1 - Rc1 * Rc1;
  D = g * g - 4 * f * h;
  if (D + 1e-10 < 0) return;
  ya1 = (-g - sqrt(D)) / (2 * f);
  ya2 = (-g + sqrt(D)) / (2 * f);
  xa1 = -(b * ya1 + c) / a;
  xa2 = -(b * ya2 + c) / a;
  if ((x[0] - xa1) * (x[0] - xa1) + (y[0] - ya1) * (y[0] - ya1) <
      (x[0] - xa2) * (x[0] - xa2) + (y[0] - ya2) * (y[0] - ya2)) {
    xa = xa1;
    ya = ya1;
  } else {
    xa = xa2;
    ya = ya2;
  }
  printf("%.5f %.5f", xa, ya);
}
int main() {
  int i, t1, t2, t3;
  for (i = 0; i < 3; i++) {
    scanf("%d%d%d", &t1, &t2, &t3);
    x[i] = t1;
    y[i] = t2;
    R[i] = t3;
  }
  if (R[0] == R[1])
    if (R[0] == R[2]) {
      SolveEqual();
      return 0;
    } else {
      swp(x, x + 2);
      swp(y, y + 2);
      swp(R, R + 2);
    }
  else if (R[0] == R[2]) {
    swp(x, x + 1);
    swp(y, y + 1);
    swp(R, R + 1);
  }
  SolveNotEqual();
  return 0;
}