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;
namespace Solve {
const double EPS = 1E-6, MAX_T = 1.0, IT = 20, RATIO = 0.98;
const int fx[4] = {-1, 1, 0, 0}, fy[4] = {0, 0, -1, 1};
struct point_t {
  double x, y;
  point_t() {}
  point_t(double _x, double _y) : x(_x), y(_y) {}
  void scan(FILE *fin) { fscanf(fin, "%lf%lf", &x, &y); }
} p[3];
double r[3];
point_t operator+(const point_t &a, const point_t &b) {
  return point_t(a.x + b.x, a.y + b.y);
}
point_t operator-(const point_t &a, const point_t &b) {
  return point_t(a.x - b.x, a.y - b.y);
}
point_t operator/(const point_t &a, double b) {
  return point_t(a.x / b, a.y / b);
}
double abs(const point_t &t) { return sqrt(t.x * t.x + t.y * t.y); }
double calc(const point_t &t) {
  double ret = 0.0;
  double v[3];
  for (int i = 0; i < 3; i++) v[i] = abs(t - p[i]) / r[i];
  double ave = (v[0] + v[1] + v[2]) / 3.0;
  for (int i = 0; i < 3; i++) ret += (v[i] - ave) * (v[i] - ave);
  ret /= 3.0;
  return ret;
}
void solve(FILE *fin, FILE *fout) {
  for (int i = 0; i < 3; i++) p[i].scan(fin), fscanf(fin, "%lf", &r[i]);
  point_t ans = (p[0] + p[1] + p[2]) / 3.0;
  for (double T = MAX_T; T > EPS; T *= RATIO)
    for (int i = 0; i < IT; i++) {
      double val = calc(ans);
      for (int dir = 0; dir < 4; dir++) {
        point_t tmp = ans + point_t(fx[dir] * T, fy[dir] * T);
        double tv = calc(tmp);
        if (tv < val) {
          val = tv;
          ans = tmp;
        }
      }
    }
  if (calc(ans) < EPS) fprintf(fout, "%.5lf %.5lf\n", ans.x, ans.y);
}
}  // namespace Solve
int main() {
  Solve::solve(stdin, stdout);
  return 0;
}