Problem: Snuke received a triangle as a birthday present. The coordinates of the three vertices were (x_1, y_1), (x_2, y_2), and (x_3, y_3).

He wants to draw two circles with the same radius inside the triangle such that the two circles do not overlap (but they may touch). Compute the maximum possible radius of the circles.

Constraints

* 0 ≤ x_i, y_i ≤ 1000
* The coordinates are integers.
* The three points are not on the same line.

Input

The input is given from Standard Input in the following format:


x_1 y_1
x_2 y_2
x_3 y_3


Output

Print the maximum possible radius of the circles. The absolute error or the relative error must be at most 10^{-9}.

Examples

Input

0 0
1 1
2 0


Output

0.292893218813


Input

3 1
1 5
4 9


Output

0.889055514217

Solution (in CPP):

Solution:
#include <bits/stdc++.h>

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define rep(i,n) FOR(i,0,n)
#define RFOR(i,a,b) for(int i=(a)-1;i>=(b);i--)
#define rrep(i,n) RFOR(i,n,0)

using namespace std;
struct pdd{double x, y;};

typedef long long ll;
typedef unsigned long long ull;

double dist(pdd a, pdd b){
	double sqd = (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
	return sqrt(sqd);
}

double calccos(double a, double b, double c){
	return (b*b + c*c - a*a) / (2*b*c);
}

double calcr(double l, double th1, double th2){
	return l / (2 + 1 / tan(th1 / 2) + 1 / tan(th2 / 2));
}

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	pdd p1, p2, p3;
	cin >> p1.x >> p1.y;
	cin >> p2.x >> p2.y;
	cin >> p3.x >> p3.y;

	double l1, l2, l3;
	l1 = dist(p2, p3);
	l2 = dist(p1, p3);
	l3 = dist(p1, p2);

	double th1, th2, th3;
	th1 = acos(calccos(l1, l2, l3));
	th2 = acos(calccos(l2, l1, l3));
	th3 = acos(calccos(l3, l1, l2));

	double r1, r2, r3;
	r1 = calcr(l1, th2, th3);
	r2 = calcr(l2, th1, th3);
	r3 = calcr(l3, th1, th2);

	cout << fixed << setprecision(12) << max({r1, r2, r3}) << endl;
}