Problem: The configuration of three circles packed inside a triangle such that each circle is tangent to the other two circles and to two of the edges of the triangle has been studied by many mathematicians for more than two centuries. Existence and uniqueness of such circles for an arbitrary triangle are easy to prove. Many methods of numerical calculation or geometric construction of such circles from an arbitrarily given triangle have been discovered. Today, such circles are called the Malfatti circles.

Figure 7 illustrates an example. The Malfatti circles of the triangle with the vertices (20, 80), (-40, -20) and (120, -20) are approximately

* the circle with the center (24.281677, 45.219486) and the radius 21.565935,
* the circle with the center (3.110950, 4.409005) and the radius 24.409005, and
* the circle with the center (54.556724, 7.107493) and the radius 27.107493.



Figure 8 illustrates another example. The Malfatti circles of the triangle with the vertices (20, -20), (120, -20) and (-40, 80) are approximately

* the circle with the center (25.629089, −10.057956) and the radius 9.942044,
* the circle with the center (53.225883, −0.849435) and the radius 19.150565, and
* the circle with the center (19.701191, 19.203466) and the radius 19.913790.



Your mission is to write a program to calculate the radii of the Malfatti circles of the given triangles.

<image>



Input

The input is a sequence of datasets. A dataset is a line containing six integers x1, y1 , x2 , y2, x3 and y3 in this order, separated by a space. The coordinates of the vertices of the given triangle are (x1 , y1 ), (x2 , y2 ) and (x3 , y3 ), respectively. You can assume that the vertices form a triangle counterclockwise. You can also assume that the following two conditions hold.

* All of the coordinate values are greater than −1000 and less than 1000.
* None of the Malfatti circles of the triangle has a radius less than 0.1.



The end of the input is indicated by a line containing six zeros separated by a space.

Output

For each input dataset, three decimal fractions r1 , r2 and r3 should be printed in a line in this order separated by a space. The radii of the Malfatti circles nearest to the vertices with the coordinates (x1 , y1 ), (x2 , y2 ) and (x3 , y3 ) should be r1 , r2 and r3 , respectively.

None of the output values may have an error greater than 0.0001. No extra character should appear in the output.

Example

Input

20 80 -40 -20 120 -20
20 -20 120 -20 -40 80
0 0 1 0 0 1
0 0 999 1 -999 1
897 -916 847 -972 890 -925
999 999 -999 -998 -998 -999
-999 -999 999 -999 0 731
-999 -999 999 -464 -464 999
979 -436 -955 -337 157 -439
0 0 0 0 0 0


Output

21.565935 24.409005 27.107493
9.942044 19.150565 19.913790
0.148847 0.207107 0.207107
0.125125 0.499750 0.499750
0.373458 0.383897 0.100456
0.706768 0.353509 0.353509
365.638023 365.638023 365.601038
378.524085 378.605339 378.605339
21.895803 22.052921 5.895714

Solution (in CPP):

Solution:
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <iostream>
#include <math.h>
#include <assert.h>
#include <vector>
#include <complex>

using namespace std;
typedef long long ll;
typedef complex<double> Point;
static const double EPS = 1e-9;
static const double PI = acos(-1.0);

#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, s, n) for (int i = (s); i < (int)(n); i++)
#define FOREQ(i, s, n) for (int i = (s); i <= (int)(n); i++)
#define FORIT(it, c) for (__typeof((c).begin())it = (c).begin(); it != (c).end(); it++)
#define MEMSET(v, h) memset((v), h, sizeof(v))

inline double sq(double x) { return x * x; }

Point p[3];
Point vect[3];
double len[3];
double l[3];
double sins[3];
Point inner;

bool inbox(Point p, Point q, Point r) {
  if (p.real() > q.real()) {
    double temp = p.real();
    p = Point(q.real(), p.imag());
    q = Point(temp, q.imag());
  }
  if (p.imag() > q.imag()) {
    double temp = p.imag();
    p = Point(p.real(), q.imag());
    q = Point(q.real(), temp);
  }
  return p.real() <= r.real() && r.real() <= q.real() &&
         p.imag() <= r.imag() && r.imag() <= q.imag();
}

Point getPos(int index, double r) {
  double d = r / sins[index];
  return p[index] + vect[index] * d;
}

pair<Point, double> bs(int index, Point center1, double r1) {
  double left = 0.0;
  double right = l[index] / 2;
  REP(iter, 60) {
    double mid = (left + right) / 2.0;
    Point c = getPos(index, mid);
    if (!inbox(p[index], inner, c) || abs(c - center1) < r1 + mid) {
      right = mid;
    } else {
      left = mid;
    }
  }
  return make_pair(getPos(index, left), left);
}

int main() {
  int x1, x2, x3, y1, y2, y3;
  while (scanf("%d %d %d %d %d %d", &x1, &y1, &x2, &y2, &x3, &y3), x1|y1|x2|y2|x3|y3) {
    p[0] = Point(x1, y1);
    p[1] = Point(x2, y2);
    p[2] = Point(x3, y3);
    REP(i, 3) {
      int prev = (i + 1) % 3;
      int next = (i + 2) % 3;
      len[i] = abs(p[prev] - p[next]);
    }
    inner = (len[0] * p[0] + len[1] * p[1] + len[2] * p[2]) / (len[0] + len[1] + len[2]);
    REP(i, 3) {
      vect[i] = inner - p[i];
      l[i] = abs(vect[i]);
      vect[i] /= abs(vect[i]);
    }
    REP(i, 3) {
      int prev = (i + 1) % 3;
      int next = (i + 2) % 3;
      double c = (sq(l[i]) + sq(len[prev]) - sq(l[next])) / (2 * l[i] * len[prev]);
      sins[i] = sqrt(1 - c * c);
    }
    double left = 0.0;
    double right = l[0] / 2;
    REP(iter, 60) {
      double mid = (left + right) / 2.0;
      Point center1 = getPos(0, mid);
      pair<Point, double> center2 = bs(1, center1, mid);
      pair<Point, double> center3 = bs(2, center1, mid);
      //cout << center1 << " " << center2.first << " " << center3.first << endl;
      //cout << mid << " " << center2.second << " " << center3.second << endl;
      //cout << abs(center1 - center2.first) << " " << mid + center2.second << endl;
      //cout << abs(center2.first - center3.first) << " " << center2.second + center3.second << endl;
      //cout << abs(center3.first - center1) << " " << center3.second + mid << endl;
      if (inbox(p[0], inner, center1) && abs(center2.first - center3.first) < center2.second + center3.second) {
        left = mid;
      } else {
        right = mid;
      }
      if (iter == 59) {
        printf("%.6lf %.6lf %.6lf\n", mid, center2.second, center3.second);
      }
    }
  }
}