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>
using namespace std;
typedef complex<double> point;
point p[5], q[5];
const double eps=1.0e-8;
namespace std{
    bool operator == (const point& a, const point& b) {
        return abs(a-b)<eps;
    }
}
struct line : public vector<point> {
    line() {}
    line(const point& a, const point& b) { push_back(a); push_back(b); }
};
struct Circle{
    point center;
    double radius;
    Circle(const point& c, const double& r):center(c),radius(r) {}
};
point unit(const point& v) { return v/abs(v);}
point ortho(const point& v) { return v*point(0,1);}
point spin(const point& v, const double &angle) {return v*point(cos(angle),sin(angle));}
inline point vec(const line& l) { return l[1]-l[0];}
inline double dot  (const point& a, const point& b) { return (a*conj(b)).real();}
inline double cross(const point& a, const point& b) { return (conj(a)*b).imag();}
point crosspoint(const line& l, const line& m) {
    double A = cross(vec(l), vec(m));
    double B = cross(vec(l), l[1]-m[0]);
    if(abs(A)<eps) {    /// parallel
        return m[0];    /// sameline
    }
    return m[0] + B/A*vec(m);
}
point O;
int cmp(const point& a, const point& b){
    return arg(a-O)<arg(b-O);
}
point solve(const point& x, const double& R, const double& angle, const line& p){
    double l=0, r=1, mid;
    point ret;
    while(l+eps<r){
        mid=(l+r)/2.0;
        double radius=abs(vec(p))*mid*sin(angle);
        point X=p[0]+abs(vec(p))*mid*unit(vec(p));
        if(abs(X-x)>R+radius) l=mid;
        else r=mid;
        ret=X;
    }
//    printf("mid=%f\n",mid);
    return ret;
}
int main(){
    point A, B, C;
    int ax, ay, bx, by, cx, cy;
    while(cin>>ax>>ay>>bx>>by>>cx>>cy&&(ax||ay||bx||by||cx||cy)){
        A=point(ax,ay); B=point(bx,by); C=point(cx,cy);
        O=(A+B+C)/(double)3.0;
        p[0]=A; p[1]=B; p[2]=C;
        q[0]=A; q[1]=B; q[2]=C;
        sort(p,p+3,cmp);
        A=p[0], B=p[1], C=p[2];
        line AB(A,B), BA(B,A), BC(B,C), CB(C,B), CA(C,A), AC(A,C); ///sides
        double a, b, c; ///angle
        double sa, sb, sc; ///side lengths
        sa=abs(B-C), sb=abs(A-C), sc=abs(A-B);
        a=acos((sb*sb+sc*sc-sa*sa)/(2*sb*sc));
        b=acos((sa*sa+sc*sc-sb*sb)/(2*sa*sc));
        c=acos((sb*sb+sa*sa-sc*sc)/(2*sb*sa));
        line AP(A,A+spin(vec(AB),a/2)), BP(B,B+spin(vec(BC),b/2)), CP(C,C+spin(vec(CA),c/2));
        point P=crosspoint(AP,BP); ///intersection
        AP=line(A,P); BP=line(B,P); CP=line(C,P);
        point lap=vec(AP);
        double l, r, mid;
        double ansx, ansy, ansz;
        double ans[5], ret[5];
        l=0, r=1;
        double vy, vz;
        while(l+eps<r){
            mid=(l+r)/2.0;
            point X=A+abs(lap)*mid*unit(lap);
            double radiusX=abs(lap)*mid*sin(a/2);
            Circle CX=Circle(X,radiusX);
            point Y, Z, Z2;
            Y=solve(X,radiusX,b/2,BP);
            Z=solve(X,radiusX,c/2,CP);
            double radiusY=abs(B-Y)*sin(b/2);
            Z2=solve(Y,radiusY,c/2,CP);
            if(abs(Z2-C)<abs(Z-C)){
                Z=Z2;
                l=mid;
            }
            else{
                r=mid;
            }
            double radiusZ=abs(C-Z)*sin(c/2);
            ansx=radiusX;
            ansy=radiusY;
            ansz=radiusZ;
        }
        ans[0]=ansx, ans[1]=ansy, ans[2]=ansz;
        for(int i=0; i<3; i++){
            if(p[i]==q[0]){
                ret[0]=ans[i];
            }
            else if(p[i]==q[1]){
                ret[1]=ans[i];
            }
            else if(p[i]==q[2]){
                ret[2]=ans[i];
            }
        }
        printf("%f %f %f\n",ret[0],ret[1],ret[2]);
    }
    return 0;
}