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;
using ll=long long;
const ll INF=1001001001;
const ll LINF=1001001001001001001;
#define overload4(_1,_2,_3,_4,name,...) name
#define rep1(n) for(ll i=0;i<(n);++i)
#define rep2(i,n) for(ll i=0;i<(n);++i)
#define rep3(i,a,b) for(ll i=(a);i<(b);++i)
#define rep4(i,a,b,c) for(ll i=(a);i<(b);i+=(c))
#define rep(...) overload4(__VA_ARGS__,rep4,rep3,rep2,rep1)(__VA_ARGS__)
#define all(x) (x).begin(),(x).end()
#define vec vector<ll>
template<class T>bool chmax(T &a,const T &b){if(a<b){a=b;return 1;}return 0;}
template<class T>bool chmin(T &a,const T &b){if(b<a){a=b;return 1;}return 0;}

void solve(vector<ll> x, vector<ll> y){
    vector<double> d;
    rep(i,3){
        d.push_back(sqrt((x[i]-x[(i+1)%3])*(x[i]-x[(i+1)%3])+(y[i]-y[(i+1)%3])*(y[i]-y[(i+1)%3])));
    }
    sort(all(d));

    double cosB=(d[2]*d[2]+d[0]*d[0]-d[1]*d[1])/(2*d[2]*d[0]);
    double cosC=(d[2]*d[2]-d[0]*d[0]+d[1]*d[1])/(2*d[2]*d[1]);
    double b=acos(cosB)/2;
    double c=acos(cosC)/2;

    double high=d[2];
    double low=0;
    rep(i,100){
        double r=(high+low)/2;
        if(r*(2+1/tan(b)+1/tan(c))<d[2])low=r;
        else high=r;
    }
    cout.precision(10);
    cout<<low<<endl;
}

int main(){
    vector<ll> x(3);
    vector<ll> y(3);
    for(int i = 0 ; i < 3 ; i++){
        scanf("%lld",&x[i]);
        scanf("%lld",&y[i]);
    }
    solve(move(x), move(y));
}