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>
double x_1, y_1, x_2, y_2;
void perpendicular_bisector(int x1, int y1, int x2, int y2, int *a, int *b,
                            int *c) {
  *a = (x2 - x1) * 2;
  *b = (y2 - y1) * 2;
  *c = x1 * x1 + y1 * y1 - x2 * x2 - y2 * y2;
}
int line_intersection(int a1, int b1, int c1, int a2, int b2, int c2) {
  if (a2 * b1 - a1 * b2 == 0) return 0;
  x_1 = (double)(c1 * b2 - c2 * b1) / (a2 * b1 - a1 * b2);
  y_1 = (double)(c1 * a2 - c2 * a1) / (b2 * a1 - b1 * a2);
  return 1;
}
void apollonius_circle(int x1, int y1, int x2, int y2, double k, double *x_,
                       double *y_, double *r_) {
  if (k > 1) {
    apollonius_circle(x2, y2, x1, y1, 1 / k, x_, y_, r_);
    return;
  }
  *x_ = (x1 - k * k * x2) / (1 - k * k);
  *y_ = (y1 - k * k * y2) / (1 - k * k);
  *r_ = k * hypot(x1 - x2, y1 - y2) / (1 - k * k);
}
int circle_intersection(double x1, double y1, double r1, double x2, double y2,
                        double r2) {
  double x, y, d_2, d, a, h;
  x = x1 - x2, y = y1 - y2, d_2 = x * x + y * y;
  if (d_2 > (r1 + r2) * (r1 + r2) || d_2 < (r1 - r2) * (r1 - r2)) return 0;
  d = sqrt(d_2);
  a = (r1 * r1 - r2 * r2 + d_2) / (2.0 * d);
  h = sqrt(r1 * r1 - a * a);
  x_1 = x1 + a / d * (x2 - x1) + h / d * (y2 - y1);
  y_1 = y1 + a / d * (y2 - y1) - h / d * (x2 - x1);
  x_2 = x1 + a / d * (x2 - x1) - h / d * (y2 - y1);
  y_2 = y1 + a / d * (y2 - y1) + h / d * (x2 - x1);
  return 1;
}
int main() {
  int x1, y1, r1, x2, y2, r2, x3, y3, r3, tmp;
  scanf("%d%d%d%d%d%d%d%d%d", &x1, &y1, &r1, &x2, &y2, &r2, &x3, &y3, &r3);
  if (r1 == r2 && r2 == r3) {
    int a12, b12, c12, a13, b13, c13;
    perpendicular_bisector(x1, y1, x2, y2, &a12, &b12, &c12);
    perpendicular_bisector(x1, y1, x3, y3, &a13, &b13, &c13);
    if (line_intersection(a12, b12, c12, a13, b13, c13))
      printf("%.5f %.5f\n", x_1, y_1);
  } else {
    double x12, y12, r12, x13, y13, r13;
    if (r1 == r2) {
      tmp = x1, x1 = x3, x3 = tmp;
      tmp = y1, y1 = y3, y3 = tmp;
      tmp = r1, r1 = r3, r3 = tmp;
    } else if (r1 == r3) {
      tmp = x1, x1 = x2, x2 = tmp;
      tmp = y1, y1 = y2, y2 = tmp;
      tmp = r1, r1 = r2, r2 = tmp;
    }
    apollonius_circle(x1, y1, x2, y2, (double)r1 / r2, &x12, &y12, &r12);
    apollonius_circle(x1, y1, x3, y3, (double)r1 / r3, &x13, &y13, &r13);
    if (circle_intersection(x12, y12, r12, x13, y13, r13)) {
      if (hypot(x1 - x_1, y1 - y_1) < hypot(x1 - x_2, y1 - y_2))
        printf("%.5f %.5f\n", x_1, y_1);
      else
        printf("%.5f %.5f\n", x_2, y_2);
    }
  }
  return 0;
}