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>

using namespace std;

typedef long long ll;
typedef vector<ll> vl;
typedef long double ld;
typedef vector<ld> vd;
typedef bool bl;
typedef vector<bl> vb;
typedef vector<vl> mt;
typedef unordered_map<ll,unordered_map<ll,ll>> graph;
typedef pair<ll,ll> pl;
typedef pair<ld,ld> pd;
typedef vector<string> vs;
typedef vector<vs> table;
typedef vector<vl> v2;
typedef vector<v2> v3;
typedef vector<v3> v4;


const ll e5 = 1 << 20;
const ll mod = 1000000007;
const ll e3 = 1 << 13;
const ll INF = 1ll << 50;

vd x,y;
ld cx,cy;
vd l;

int main(){
  x = y = vd(3);
  for(ll i = 0;i < 3;i++) cin >> x[i] >> y[i];
  l = vd(3);
  for(ll i = 0;i < 3;i++){
    l[i] = sqrt((x[(i+1)%3]-x[(i-1+3)%3])*(x[(i+1)%3]-x[(i-1+3)%3])+(y[(i+1)%3]-y[(i-1+3)%3])*(y[(i+1)%3]-y[(i-1+3)%3]));
  }
  for(ll i = 0;i < 3;i++){
    cx += x[i]*l[i];
    cy += y[i]*l[i];
  }
  cx /= accumulate(l.begin(),l.end(),0.);
  cy /= accumulate(l.begin(),l.end(),0.);
  for(ll i = 0;i < 3;i++){
    x[i] -= cx;
    y[i] -= cy;
  }
  ld s = accumulate(l.begin(),l.end(),0.)/2;
  for(ll i = 0;i < 3;i++){
    cerr << l[i] << " ";
  }
  cerr << endl;
  ld area = sqrt(s*(s-l[0])*(s-l[1])*(s-l[2]));
  ld r = 2*area/(accumulate(l.begin(),l.end(),0.));
  ld top = 1.0;
  ld bottom = 0.0;
  for(ll i = 0;i < 100;i++){
    ld middle = (top+bottom)/2;
    if(*max_element(l.begin(),l.end())/2*middle < (1-middle)*r) bottom = middle;
    else top = middle;
  }
  cout << setprecision(1000);
  cout << r*(1-top) << endl;
}