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<algorithm>
#include<iostream>
#include<cmath>
#include<vector>
using namespace std;
typedef long long lint;
typedef vector<int>vi;
typedef pair<int,int>pii;
#define rep(i,n)for(int i=0;i<(int)(n);++i)

double deg(const vector<pair<double,double> > &p){
  double pi=acos(-1.0);
  double cx=p[1].first-p[0].first;
  double cy=p[1].second-p[0].second;
  double bx=p[2].first-p[0].first;
  double by=p[2].second-p[0].second;
  double c=sqrt(bx*bx+by*by);
  double alpha2=atan2(cy,cx)-atan2(by,bx);
  if(alpha2<0){
    alpha2+=2*pi;
  }
  if(alpha2>=pi)
    alpha2=2*pi-alpha2;
  double alpha=alpha2/2;
  return alpha;
}

double f(const vector<pair<double,double> > &p){
  vector<pair<double,double> > q(p);
  swap(q[2],q[0]);
  double bx=p[2].first-p[0].first;
  double by=p[2].second-p[0].second;
  double c=sqrt(bx*bx+by*by);
  double alpha=deg(p);
  double beta=deg(q);
  double res=c/(1/tan(alpha)+1/tan(beta)+2);
  //cerr<<"res="<<res<<endl;
  return res;
}


int main(){
  vector<pair<double,double> > p(3);
  rep(i,3){
    double x,y;
    cin>>x>>y;
    p[i]=make_pair(x,y);
  }
  double ma=0;
  rep(i,3){
    vector<pair<double,double> > q(3);
    rep(j,3)q[j]=p[(i+j)%3];
    ma=max(ma,f(q));
  }
  printf("%.15f\n",ma);
}