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 long long ll;

const int LOOP = 80;
const double EPS = 1e-8;
const double eps = 1e-8;
const double INF = 1e12;
const double PI = acos(-1);
typedef complex<double> P;
namespace std{
	bool operator < (const P& a, const P& b){
		return real(a) != real(b) ? real(a) < real(b) : imag(a) < imag(b);
	}
}
double cross(const P& a, const P& b){
	return imag(conj(a)*b);
}
double dot(const P& a, const P& b){
	return real(conj(a)*b);
}

struct L : public vector<P>{
	L(){}
	L(const P &a, const P &b){
		push_back(a); push_back(b);
	}
};

typedef vector<P> G;

struct C{
	P p; double r;
	C(){}
	C(const P &p, double r) : p(p), r(r){}
};

int ccw(P a, P b, P c){
	b -= a; c -= a;
	if(cross(b, c) > 0)   return +1;       // counter clockwise
	if(cross(b, c) < 0)   return -1;       // clockwise
	if(dot(b, c) < 0)     return +2;       // c--a--b on line
	if(norm(b) < norm(c)) return -2;       // a--b--c on line
	return 0;
}

P crosspoint(const L &l, const L &m){
	double A = cross(l[1] - l[0], m[1] - m[0]);
	double B = cross(l[1] - l[0], l[1] - m[0]);
	if(abs(A) < EPS && abs(B) < EPS) return m[0]; // same line
	if(abs(A) < EPS) assert(false); // !!!PRECONDITION NOT SATISFIED!!!
	return m[0] + B / A * (m[1] - m[0]);
}

int intersectCC(const C &c1, const C &c2){
	double d = std::abs(c1.p - c2.p), r1 = c1.r, r2 = c2.r;
	if(r1 + r2 < d) return 0;                   // ??¢????????????
	if(std::abs(r1 + r2 - d) < eps) return -2;  // ?????\
	if(std::abs(d + r1 - r2) < eps) return +1;  // c1 ??? c2 ????????§?????\
	if(std::abs(d + r2 - r1) < eps) return -1;  // c2 ??? c1 ????????§?????\
	if(d + r1 < r2) return +3;                  // c1 ??? c2 ??????
	if(d + r2 < r1) return -3;                  // c2 ??? c1 ??????
	return 2;                                    // 2?????????????????????
}

P projection(const L &l, const P &p){
	double t = dot(p - l[0], l[0] - l[1]) / norm(l[0] - l[1]);
	return l[0] + t*(l[0] - l[1]);
}

double distanceLP(const L &l, const P &p){
	return abs(p - projection(l, p));
}

std::vector<P> crosspointCL(const C &c, const L &l){
	std::vector<P> res;
	double d = distanceLP(l, c.p);      // ????????¨??´???????????¢
	if(d > c.r) return res;  // ??¢????????????

	if(std::abs(d - c.r) < eps){  // ?§?????????????
		res.push_back(projection(l, c.p));
		return res;
	}
	P h = projection(l, c.p);
	P u = std::sqrt(c.r * c.r - d * d) * (l[1] - l[0]) / std::abs(l[1] - l[0]);
	res.push_back(h + u);
	res.push_back(h - u);
	return res;
}

P p[3];
L ls[3];
P no[3];

bool InTriangle(P p){
	for(int i = 0; i < 3; i++){
		if(ccw(ls[i][0], ls[i][1], p) != 1) return false;
	}
	return true;
}

bool InTriangle(C c){
	for(int i = 0; i < 3; i++){
		auto res = crosspointCL(c, ls[i]);
		if(res.size() == 2) return false;
	}
	return true;
}

void PrintC(C c){
	cout << "Circle " << c.p.real() << " " << c.p.imag() << " " << c.r << endl;
}

double d(double x1, double y1, double x2, double y2){
	x1 -= x2, y1 -= y2;
	return sqrt(x1 * x1 + y1 * y1);
}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
#ifdef LOCAL
	std::ifstream in("in");
	std::cin.rdbuf(in.rdbuf());
#endif

	while(true){
		double sum = 0;
		for(int i = 0; i < 3; i++){
			double x, y;
			cin >> x >> y;
			sum += x + y;
			p[i] = P(x, y);
		}
		if(abs(sum) < 1e-6) break;
		for(int i = 0; i < 3; i++){
			P p1 = p[i], p2 = p[(i + 1) % 3];
			ls[i] = L(p1, p2);
			double d = abs(p1 - p2);
			no[i] = (p2 - p1) / d * polar(1.0, PI / 2.0);
		}

		double lb1 = 1e-6, ub1 = 1e6;
		C c1, c2, c3;
		for(int loop1 = 0; loop1 < LOOP; loop1++){
			double mid1 = (lb1 + ub1) / 2.0;
			P p1;
			{
				L l1 = ls[0], l2 = ls[1];
				l1[0] += no[0] * mid1;
				l1[1] += no[0] * mid1;
				l2[0] += no[1] * mid1;
				l2[1] += no[1] * mid1;
				p1 = crosspoint(l1, l2);
				if(!InTriangle(p1) || !InTriangle(C(p1, mid1))){
					ub1 = mid1;
					continue;
				}
			}
			c1 = C(p1, mid1);

			double lb2 = 1e-6, ub2 = 1e6;
			P p2;

			for(int loop2 = 0; loop2 < LOOP; loop2++){
				double mid2 = (lb2 + ub2) / 2.0;
				{
					L l1 = ls[1], l2 = ls[2];
					l1[0] += no[1] * mid2;
					l1[1] += no[1] * mid2;
					l2[0] += no[2] * mid2;
					l2[1] += no[2] * mid2;
					p2 = crosspoint(l1, l2);
					if(!InTriangle(p2) || !InTriangle(C(p2, mid2)) || intersectCC(c1, C(p2, mid2)) != 0){
						ub2 = mid2;
					}
					else{
						lb2 = mid2;
					}
				}
			}
			c2 = C(p2, lb2);


			double dist = abs(c1.p - c2.p);
			if(dist > c1.r + c2.r + eps){
				lb1 = mid1;
				continue;
			}

			//PrintC(c1);
			//PrintC(c2);

			// c1??¨??\?????????c3????±???????
			double lb3 = 1e-6, ub3 = 1e6;
			P p3;
			for(int loop2 = 0; loop2 < LOOP; loop2++){
				double mid3 = (lb3 + ub3) / 2.0;
				{
					L l1 = ls[2], l2 = ls[0];
					l1[0] += no[2] * mid3;
					l1[1] += no[2] * mid3;
					l2[0] += no[0] * mid3;
					l2[1] += no[0] * mid3;
					p3 = crosspoint(l1, l2);
					if(!InTriangle(p3) || !InTriangle(C(p3, mid3)) || intersectCC(c1, C(p3, mid3)) != 0){
						ub3 = mid3;
					}
					else{
						lb3 = mid3;
					}
				}
			}
			c3 = C(p3, lb3);

			dist = abs(p2 - p3);
			if(dist > c2.r + c3.r) ub1 = mid1;
			else lb1 = mid1;
			//PrintC(c1);
			//PrintC(c2);
			//PrintC(c3);
		}

		cout << fixed << setprecision(15) << c3.r << " " << c1.r << " " << c2.r << endl;
		//PrintC(c1);
		//PrintC(c2);
		//PrintC(c3);
	}
}