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>
void print(double x, double y) {
  if (fabs(x) < 1e-6) x = 0;
  if (fabs(y) < 1e-6) y = 0;
  printf("%.5lf %.5lf\n", x, y);
}
void work1(int *a, int *b, int *c) {
  double a1, b1, c1, a2, b2, c2, xr, yr;
  a1 = a[0] - b[0];
  b1 = a[1] - b[1];
  a2 = a[0] - c[0];
  b2 = a[1] - c[1];
  c1 = 0.5 * (a[0] * a[0] - b[0] * b[0] + a[1] * a[1] - b[1] * b[1]);
  c2 = 0.5 * (a[0] * a[0] - c[0] * c[0] + a[1] * a[1] - c[1] * c[1]);
  xr = (c1 * b2 - c2 * b1) / (a1 * b2 - a2 * b1);
  yr = (a1 * c2 - a2 * c1) / (a1 * b2 - a2 * b1);
  print(xr, yr);
}
void getpos(int *a, int *b, double &x, double &y, double &r) {
  double r1 = (double)a[2] / (a[2] + b[2]), r2 = (double)a[2] / (a[2] - b[2]);
  double dist = sqrt((double)pow(a[0] - b[0], 2) + pow(a[1] - b[1], 2));
  r = dist * fabs(r1 - r2) / 2;
  x = a[0] + (b[0] - a[0]) * (r1 + r2) / 2;
  y = a[1] + (b[1] - a[1]) * (r1 + r2) / 2;
}
void work2(int *a, int *b, int *c) {
  double x1, y1, r1, x2, y2, r2;
  getpos(a, c, x1, y1, r1);
  getpos(b, c, x2, y2, r2);
  double x0, y0, dist = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
  if (dist > r1 + r2 || dist < fabs(r1 - r2)) return;
  x0 = x1 + (r1 * r1 - r2 * r2 + dist * dist) / 2 / dist / dist * (x2 - x1);
  y0 = y1 + (r1 * r1 - r2 * r2 + dist * dist) / 2 / dist / dist * (y2 - y1);
  double xc, yc, xd, yd, h, s, p;
  p = (dist + r1 + r2) * 0.5;
  s = sqrt(p * (p - dist) * (p - r1) * (p - r2));
  h = 2 * s / dist;
  xc = x0 - h / dist * (y2 - y1);
  yc = y0 + h / dist * (x2 - x1);
  xd = x0 + h / dist * (y2 - y1);
  yd = y0 - h / dist * (x2 - x1);
  if (pow(a[0] - xc, 2) + pow(a[1] - yc, 2) <
      pow(a[0] - xd, 2) + pow(a[1] - yd, 2))
    print(xc, yc);
  else
    print(xd, yd);
}
void test() {
  double x1 = 0, y1 = 0, r1 = 1, x2 = 1, y2 = 1, r2 = 1;
  double x0, y0, dist = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
  print(dist, 0);
  if (dist > r1 + r2) return;
  x0 = x1 + (r1 * r1 - r2 * r2 + dist * dist) / 2 / dist / dist * (x2 - x1);
  y0 = y1 + (r1 * r1 - r2 * r2 + dist * dist) / 2 / dist / dist * (y2 - y1);
  print(x0, y0);
  printf("%.5lf %.5lf\n", x0, y0);
  double xc, yc, xd, yd, h, s, p;
  p = (dist + r1 + r2) * 0.5;
  s = sqrt(p * (p - dist) * (p - r1) * (p - r2));
  h = 2 * s / dist;
  xc = x0 - h / dist * (y2 - y1);
  yc = y0 + h / dist * (x2 - x1);
  xd = x0 + h / dist * (y2 - y1);
  yd = y0 - h / dist * (x2 - x1);
  print(xc, yc);
  print(xd, yd);
}
int main() {
  int a[3], b[3], c[3];
  scanf("%d%d%d%d%d%d%d%d%d", &a[0], &a[1], &a[2], &b[0], &b[1], &b[2], &c[0],
        &c[1], &c[2]);
  if (a[2] == b[2] && a[2] == c[2])
    work1(a, b, c);
  else if (a[2] != b[2] && a[2] != c[2])
    work2(b, c, a);
  else if (b[2] != a[2] && b[2] != c[2])
    work2(a, c, b);
  else
    work2(a, b, c);
}