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 <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef complex<double> C;
 
const double EPS = 1e-10;
#define EQ(a,b) (abs((a)-(b)) < EPS)
#define EQV(a,b) ( EQ((a).real(), (b).real()) && EQ((a).imag(), (b).imag()) )
const ll INF = 100000000;
const ll MOD = 1000000007;
C p[3];

double cross(C a, C b) {
    return (a.real() * b.imag() - a.imag() * b.real());
}

C intersection_l(C a1, C a2, C b1, C b2) {
  C a = a2 - a1; C b = b2 - b1;
  return a1 + a * cross(b, b1-a1) / cross(b, a);
}

void solve() {
    double l = min(abs(p[0]-p[1]), abs(p[0]-p[2]));

    double lef = 0.0, rig = l;
    C r1, r2, r3;
    double d1, d2, d3;
    rep(_,100) {
        
        double mid = (lef + rig) / 2.0;
        C mp1 = p[0] + (p[1] - p[0]) / abs(p[1]-p[0]) * mid;
        C mp2 = p[0] + (p[2] - p[0]) / abs(p[2]-p[0]) * mid;
        C mp1t = mp1 + (p[1]-p[0])*C(0,1);
        C mp2t = mp2 + (p[2]-p[0])*C(0,1);
        r1 = intersection_l(mp1, mp1t, mp2, mp2t);
        d1 = abs(r1 - mp1);

        double l_2 = min(abs(p[1]-p[0]), abs(p[1]-p[2]));
        double lef_2 = 0.0, rig_2 = l_2;
        rep(__,100) {
            double mid_2 = (lef_2 + rig_2) / 2.0;
            C mp1_2 = p[1] + (p[0]-p[1]) / abs(p[0]-p[1]) * mid_2;
            C mp2_2 = p[1] + (p[2]-p[1]) / abs(p[2]-p[1]) * mid_2;
            C mp1t_2 = mp1_2 + (p[0]-p[1])*C(0,1);
            C mp2t_2 = mp2_2 + (p[2]-p[1])*C(0,1);
            r2 = intersection_l(mp1_2, mp1t_2, mp2_2, mp2t_2);
            d2 = abs(r2 - mp1_2);
            if (abs(r1-r2) < d1+d2) {
                rig_2 = mid_2;
            } else {
                lef_2 = mid_2;
            }
        }

        l_2 = min(abs(p[2]-p[0]), abs(p[2]-p[1]));
        lef_2 = 0.0, rig_2 = l_2;
        rep(__,100) {
            double mid_2 = (lef_2 + rig_2) / 2.0;
            C mp1_2 = p[2] + (p[0]-p[2]) / abs(p[0]-p[2]) * mid_2;
            C mp2_2 = p[2] + (p[1]-p[2]) / abs(p[1]-p[2]) * mid_2;
            C mp1t_2 = mp1_2 + (p[0]-p[2])*C(0,1);
            C mp2t_2 = mp2_2 + (p[1]-p[2])*C(0,1);
            r3 = intersection_l(mp1_2, mp1t_2, mp2_2, mp2t_2);
            d3 = abs(r3 - mp1_2);
            if (abs(r1-r3) < d1+d3) {
                rig_2 = mid_2;
            } else {
                lef_2 = mid_2;
            }
        }
        if (abs(r2-r3) < d2+d3) {
            lef = mid;
        } else {
            rig = mid;
        }
    }
    printf("%.9f %.9f %.9f\n", d1, d2, d3);
}

int main() {
    int _x[3], _y[3];
    while (cin >> _x[0] >> _y[0] >> _x[1] >> _y[1] >> _x[2] >> _y[2]) {
        bool end = true;
        rep(i,3) {
            if (_x[i] || _y[i]) end = false;
        }
        if (end) break;
        rep(i,3)  p[i] = C(_x[i], _y[i]);
        solve();
    }
}