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;
struct Point {
  double x, y;
  Point(double x = 0, double y = 0) : x(x), y(y) {}
  Point operator-(const Point &a) const { return Point(x - a.x, y - a.y); }
  Point operator+(const Point &a) const { return Point(x + a.x, y + a.y); }
  Point operator/(const double &a) const { return Point(x / a, y / a); }
  void read() { cin >> x >> y; }
};
double Length(Point a) { return sqrt(a.x * a.x + a.y * a.y); }
double dis(Point now, Point p, double r) { return Length(now - p) / r; }
double r1, r2, r3;
Point p1, p2, p3;
double wuca(Point now) {
  double d1 = dis(now, p1, r1), d2 = dis(now, p2, r2), d3 = dis(now, p3, r3);
  double ans =
      (d1 - d2) * (d1 - d2) + (d2 - d3) * (d2 - d3) + (d3 - d1) * (d3 - d1);
  return ans;
}
void solve() {
  p1.read();
  cin >> r1;
  p2.read();
  cin >> r2;
  p3.read();
  cin >> r3;
  double t = 1;
  Point now = (p1 + p2 + p3) / 3;
  while (t > 1e-5) {
    double noww = wuca(now);
    if (wuca(Point(now.x + t, now.y)) < noww)
      now.x += t;
    else if (wuca(Point(now.x - t, now.y)) < noww)
      now.x -= t;
    else if (wuca(Point(now.x, now.y + t)) < noww)
      now.y += t;
    else if (wuca(Point(now.x, now.y - t)) < noww)
      now.y -= t;
    else
      t /= 2;
  }
  if (wuca(now) <= 1e-5) printf("%.6lf %.6lf\n", now.x, now.y);
}
int main() {
  solve();
  int mk;
  if (scanf("%d", &mk) == EOF) return 0;
  return 0;
}