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 p[3][2];
int r[3];
int main() {
  int i, j;
  int a[2], b[2], k[2], c[2];
  double xr, yr, xc, yc;
  double af, bf, cf;
  double deta, maxd, mind;
  double rs, x, y;
  for (i = 0; i < 3; i++) {
    cin >> p[i][0] >> p[i][1] >> r[i];
  }
  a[0] = 2 * (p[0][0] - p[1][0]);
  a[1] = 2 * (p[1][0] - p[2][0]);
  b[0] = 2 * (p[0][1] - p[1][1]);
  b[1] = 2 * (p[1][1] - p[2][1]);
  k[0] = r[1] * r[1] - r[0] * r[0];
  k[1] = r[2] * r[2] - r[1] * r[1];
  c[0] = p[1][0] * p[1][0] - p[0][0] * p[0][0] + p[1][1] * p[1][1] -
         p[0][1] * p[0][1];
  c[1] = p[2][0] * p[2][0] - p[1][0] * p[1][0] + p[2][1] * p[2][1] -
         p[1][1] * p[1][1];
  c[0] = -c[0];
  c[1] = -c[1];
  if (a[1] * b[0] - a[0] * b[1] == 0) {
    return 0;
  }
  xr = (double)(k[1] * b[0] - k[0] * b[1]) / (a[1] * b[0] - a[0] * b[1]);
  xc = (double)(c[1] * b[0] - c[0] * b[1]) / (a[1] * b[0] - a[0] * b[1]);
  yr = (double)(k[1] * a[0] - k[0] * a[1]) / (a[0] * b[1] - a[1] * b[0]);
  yc = (double)(c[1] * a[0] - c[0] * a[1]) / (a[0] * b[1] - a[1] * b[0]);
  af = xr * xr + yr * yr;
  bf = 2 * xc * xr - 2 * p[1][0] * xr + 2 * yc * yr - 2 * p[1][1] * yr -
       r[1] * r[1];
  cf = xc * xc - 2 * p[1][0] * xc + p[1][0] * p[1][0] + yc * yc -
       2 * p[1][1] * yc + p[1][1] * p[1][1];
  deta = bf * bf - 4 * af * cf;
  if (af == 0) {
    if (0 == bf && 0 != cf) {
      return 0;
    }
    if (bf * cf > 0) {
      return 0;
    }
    x = xc;
    y = yc;
  } else if (deta < 0)
    return 0;
  else {
    deta = sqrt(deta);
    maxd = deta - bf;
    mind = -bf - deta;
    if (mind < 0) mind = maxd;
    if (maxd < 0)
      return 0;
    else {
      rs = mind / 2 / af;
      x = xr * rs + xc;
      y = yr * rs + yc;
    }
  }
  cout.setf(ios::fixed);
  cout << setprecision(5) << x << " " << y << endl;
  return 0;
}