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 f first
#define s second
#define mp make_pair
#define pi M_PI
#define inf 1<<30
#define eps (1e-9)
#define equals(a,b) (fabs((a)-(b))<eps)
using namespace std;

class Point{
public:
  double x,y;
  Point(double x=0,double y=0):x(x),y(y){}

  Point operator+(Point p){ return Point(x+p.x,y+p.y);}
  Point operator-(Point p){ return Point(x-p.x,y-p.y);}
  Point operator*(double k){ return Point(x*k,y*k);}
  Point operator/(double k){ return Point(x/k,y/k);}
  bool operator<(Point p)const{ return (x!=p.x ? x<p.x : y<p.y);}
  bool operator==(Point p)const{ return fabs(x-p.x)<eps && fabs(y-p.y)<eps;}

  double abs(){ return sqrt(norm());}
  double norm(){ return (x*x+y*y);}
};
typedef Point Vector;
typedef vector<Point> Polygon;

class Segment{
public:
  Point p1,p2;
  Segment(Point p1=Point(),Point p2=Point()):p1(p1),p2(p2){}
};
typedef Segment Line;

double norm(Vector a){ return (a.x*a.x+a.y*a.y);}
double abs(Vector a){ return sqrt(norm(a));}
double dot(Vector a,Vector b){ return (a.x*b.x+a.y*b.y);}
double cross(Vector a,Vector b){ return (a.x*b.y-a.y*b.x);}

Point project(Segment s,Point p){
  Vector base=(s.p2-s.p1);
  double r=(dot(p-s.p1,base)/base.norm());
  return (s.p1+base*r);
}

int ccw(Point p0,Point p1,Point p2){
  Vector a=p1-p0;
  Vector b=p2-p0;
  if(cross(a,b)>eps)return 1;
  if(cross(a,b)<-eps)return -1;
  if(dot(a,b)<-eps)return 2;
  if(a.norm()<b.norm())return -2;
  return 0;
}

double getDistanceLP(Line l,Point p){
  return abs(cross(l.p2-l.p1,p-l.p1)/abs(l.p2-l.p1));
}

Point rotate(Point base,Point a,double r){
  Point b=a-base;
  a.x=b.x*cos((r/180)*M_PI)-b.y*sin((r/180)*M_PI);
  a.y=b.x*sin((r/180)*M_PI)+b.y*cos((r/180)*M_PI);
  a=a+base;
  return a;
}

Point getCrossPointLL(Line a,Line b){
  double A=cross(a.p2-a.p1,b.p2-b.p1);
  double B=cross(a.p2-a.p1,a.p2-b.p1);
  if(abs(A)<eps || abs(B)<eps)return b.p1;
  return b.p1+(b.p2-b.p1)*(B/A);
}

//  ?§?????????????????????????
Line getBisectorOfAngle(Point base,Point a,Point b){
  Vector v1=(a-base),v2=(b-base);
  double s=acos(dot(v1,v2)/(abs(v1)*abs(v2)))*360/(4*pi);
  return Line(base,rotate(base,a,s));
  //return Line(base,rotate(base,a,180-s));
}

//  ????§???¢???????§?????????????????????????
Line getBisectorOfAngleInTriangle(Point base,Point a,Point b){
  Line L=getBisectorOfAngle(base,a,b);
  Point p=getCrossPointLL(Line(a,b),L);
  return Segment(base,p);
}

Point p1,p2,p3;
Segment s1,s2,s3;
Line L1,L2,L3;
vector<double> ans;

bool check(Line L,Point A,double a,double dis){
  Vector V=(L.p2-L.p1)/abs(L.p2-L.p1);
  Point P=L.p1+V*dis;
  double d=getDistanceLP(s3,P);
  if(((a+d)-abs(A-P))<eps)return true;
  return false;
}

bool in(Point P,double r){
  if(getDistanceLP(s1,P)-r<-eps)return false;
  if(getDistanceLP(s2,P)-r<-eps)return false;
  if(getDistanceLP(s3,P)-r<-eps)return false;
  return true;
}

bool ok(double dis){
  Vector V=(L1.p2-L1.p1)/abs(L1.p2-L1.p1);
  Point A=L1.p1+V*dis;
  double a,b,c,l,r,m;
  a=getDistanceLP(s1,A);

  l=0;r=abs(L2.p1-L2.p2);
  for(int i=0;i<100;i++){
    m=(l+r)/2.0;
    if(check(L2,A,a,m))l=m;
    else r=m;
  }
  V=(L2.p2-L2.p1)/abs(L2.p2-L2.p1);
  Point B=L2.p1+V*m;
  b=getDistanceLP(s3,B);
  if(!in(B,b))return false;

  l=0;r=abs(L3.p1-L3.p2);
  for(int i=0;i<100;i++){
    m=(l+r)/2.0;
    if(check(L3,A,a,m))l=m;
    else r=m;
  }
  V=(L3.p2-L3.p1)/abs(L3.p2-L3.p1);
  Point C=L3.p1+V*m;
  c=getDistanceLP(s3,C);
  if(!in(C,c))return false;

  if(equals(c+b,abs(C-B))){
    ans.push_back(a);
    ans.push_back(b);
    ans.push_back(c);
  }
  //printf("%.10f %.10f %.10f %.10f\n",a,b,c,abs(C-B));
  if(((c+b)-abs(C-B))<-eps)return true;
  return false;
}

int main()
{
  int a,b,c,d,e,f;
  while(1){
    cin>>a>>b>>c>>d>>e>>f;
    if(a+b+c+d+e+f==0)break;
    p1=Point(a,b);
    p2=Point(c,d);
    p3=Point(e,f);
    s1=Segment(p1,p2);
    s2=Segment(p1,p3);
    s3=Segment(p2,p3);
    L1=getBisectorOfAngleInTriangle(p1,p2,p3);
    L2=getBisectorOfAngleInTriangle(p2,p3,p1);
    L3=getBisectorOfAngleInTriangle(p3,p1,p2);
    Point cp=getCrossPointLL(L1,L2);
    L1.p2=cp;
    L2.p2=cp;
    L3.p2=cp;
    ans.clear();

    double l=0,r=abs(L1.p2-L1.p1);
    for(int i=0;i<100;i++){
      double m=(l+r)/2.0;
      if(ok(m))r=m;
      else l=m;
      if(!ans.empty())break;
    }

    printf("%.6f %.6f %.6f\n",ans[0],ans[1],ans[2]);
  }
  return 0;
}