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;
int dx[] = {1, 1, 1, 0, -1, -1, -1, 0};
int dy[] = {-1, 0, 1, 1, 1, 0, -1, -1};
pair<double, double> a[5];
double R[5];
double cx, cy;
double dist(pair<double, double> A, pair<double, double> B) {
  return sqrt((B.first - A.first) * (B.first - A.first) +
              (B.second - A.second) * (B.second - A.second));
}
double eval(double first, double second) {
  double d1 = dist({first, second}, a[1]);
  double d2 = dist({first, second}, a[2]);
  double d3 = dist({first, second}, a[3]);
  double dif1 = fabs(R[1] / R[2] - d1 / d2);
  double dif2 = fabs(R[1] / R[3] - d1 / d3);
  double dif3 = fabs(R[2] / R[3] - d2 / d3);
  return max(dif1, max(dif2, dif3));
}
int main() {
  cin >> a[1].first >> a[1].second >> R[1] >> a[2].first >> a[2].second >>
      R[2] >> a[3].first >> a[3].second >> R[3];
  for (int i = 1; i <= 3; i++) {
    cin >> a[i].first >> a[i].second;
    cx += a[i].first;
    cy += a[i].second;
  }
  cx /= 3;
  cy /= 3;
  double step = 5;
  double dif = eval(cx, cy);
  while (step > 1e-5) {
    int d = 0;
    for (d = 0; d < 8; d++) {
      double xoff = step * dx[d];
      double yoff = step * dy[d];
      double currDif = eval(cx + xoff, cy + yoff);
      if (currDif < dif) {
        dif = currDif;
        cx += xoff;
        cy += yoff;
        break;
      }
    }
    if (d == 8) step /= 2;
  }
  if (fabs(dif) < 1e-5) cout << fixed << setprecision(5) << cx << " " << cy;
}