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>
//#include <math.h>
using namespace std;

#define INF 1.1e9
#define LINF 1.1e18
#define FOR(i,a,b) for (int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define BIT(x,n) bitset<n>(x)
#define PI 3.14159265358979323846

typedef long long ll;
typedef pair<int,int> P;
//typedef pair<int,P> PP;

//-----------------------------------------------------------------------------

P p1,p2,p3;

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

	cin>>p1.fi>>p1.se>>p2.fi>>p2.se>>p3.fi>>p3.se;
	double a=hypot(p1.fi-p2.fi,p1.se-p2.se);
	double b=hypot(p2.fi-p3.fi,p2.se-p3.se);
	double c=hypot(p3.fi-p1.fi,p3.se-p1.se);
	double r=fabs((p2.fi-p1.fi)*(p3.se-p1.se)-(p3.fi-p1.fi)*(p2.se-p1.se))/(a+b+c);
	//double r=2*S/(a+b+c);
	double ma=max(a,max(b,c));
	double lb=0,ub=INF;
	REP(i,200) {
		double mid=(ub+lb)/2;
		if(ma*(r-mid)>=2*mid*r) lb=mid;
		else ub=mid;
	}
	printf("%.15f\n",lb);

	return 0;
}