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>
struct circle {
  double x, y, r;
};
circle ci[3];
double dist(double x1, double y1, double x2, double y2) {
  return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
}
double eval1(double x, double y) {
  double dst[3];
  for (int i = 0; i < 3; i++) dst[i] = dist(x, y, ci[i].x, ci[i].y);
  std::vector<double> vd(3);
  for (int i = 0; i < 3; i++) {
    int j = (i + 1) % 3;
    vd[i] = fabs(dst[i] / dst[j] - ci[i].r / ci[j].r);
  }
  std::sort(vd.begin(), vd.end());
  return vd.back();
}
double eval(double x, double y) {
  std::vector<double> b(3);
  double dst[3];
  for (int i = 0; i < 3; i++) dst[i] = dist(x, y, ci[i].x, ci[i].y);
  b[0] = fabs(dst[0] / dst[1] - ci[0].r / ci[1].r);
  b[1] = fabs(dst[2] / dst[1] - ci[2].r / ci[1].r);
  b[2] = fabs(dst[2] / dst[0] - ci[2].r / ci[0].r);
  sort(b.begin(), b.end());
  return b.back();
}
int main() {
  for (int i = 0; i < 3; i++) std::cin >> ci[i].x >> ci[i].y >> ci[i].r;
  double cur_x = (ci[0].x + ci[1].x + ci[2].x) / 3.0;
  double cur_y = (ci[0].y + ci[1].y + ci[2].y) / 3.0;
  double step = 10.0;
  int dx[] = {1, -1, 0, 0, 1, 1, -1, -1};
  int dy[] = {0, 0, 1, -1, 1, -1, 1, -1};
  while (step > 1E-9) {
    int i = 0;
    for (i = 0; i < 8; i++) {
      double n_x = cur_x + step * dx[i];
      double n_y = cur_y + step * dy[i];
      if (eval(cur_x, cur_y) > eval(n_x, n_y)) {
        cur_x = n_x;
        cur_y = n_y;
        break;
      }
    }
    if (i == 8) step /= 2.0;
  }
  if (eval(cur_x, cur_y) < 1E-6) printf("%.9f %.9f\n", cur_x, cur_y);
  return 0;
}