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>
const double eps = (1e-9);
using namespace std;
int dcmp(long double a, long double b) {
  return fabsl(a - b) <= eps ? 0 : (a > b) ? 1 : -1;
}
int getBit(int num, int idx) { return ((num >> idx) & 1) == 1; }
int setBit1(int num, int idx) { return num | (1 << idx); }
long long setBit0(long long num, int idx) { return num & ~(1ll << idx); }
long long flipBit(long long num, int idx) { return num ^ (1ll << idx); }
void M() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int countNumBit1(int mask) {
  int ret = 0;
  while (mask) {
    mask &= (mask - 1);
    ++ret;
  }
  return ret;
}
double R[4], X[4], Y[4];
double moves[8][2] = {{1.0, 0.0}, {-1.0, 0.0}, {0.0, 1.0},  {0.0, -1.0},
                      {1.0, 1.0}, {1.0, -1.0}, {-1.0, 1.0}, {-1.0, -1.0}};
double D[4];
double dist(double x1, double y1, double x2, double y2) {
  return sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
}
double estimate(double px, double py) {
  vector<double> a(3);
  vector<double> b(3);
  for (int i = 0; i < 3; i++) a[i] = dist(px, py, X[i], Y[i]);
  double mx = 0.0;
  mx = max(mx, fabs(a[0] / a[1] - R[0] / R[1]));
  mx = max(mx, fabs(a[0] / a[2] - R[0] / R[2]));
  mx = max(mx, fabs(a[2] / a[1] - R[2] / R[1]));
  return mx;
}
int main() {
  double step = 10.0, x = 0.0, y = 0.0;
  for (int i = 0; i < 3; i++) {
    cin >> X[i] >> Y[i] >> R[i];
    x += X[i];
    y += Y[i];
  }
  x /= 3;
  y /= 3;
  double mx = estimate(x, y);
  while (step > eps) {
    int i;
    for (i = 0; i < 8; i++) {
      x += step * moves[i][0];
      y += step * moves[i][1];
      double res = estimate(x, y);
      if (res < mx) {
        mx = res;
        break;
      } else {
        x -= step * moves[i][0];
        y -= step * moves[i][1];
      }
    }
    if (i == 8) step /= 2.0;
  }
  if (fabs(mx - 0.0) <= eps) cout << setprecision(6) << x << " " << y << endl;
}