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;
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(),A.end()
#define RALL(A) A.rbegin(),A.rend()
typedef long long LL;
typedef pair<LL,LL> P;
const LL mod=1000000007;
const LL LINF=1LL<<60;
const int INF=1<<30;
int dx[]={1,0,-1,0};
int dy[]={0,1,0,-1};
 

int main(){
    vector<P> v(3);
    for (int i = 0; i < 3; i++) {
        cin >> v[i].fs >> v[i].sc;
    }
    v[1]=mp(v[1].fs-v[0].fs,v[1].sc-v[0].sc);
    v[2]=mp(v[2].fs-v[0].fs,v[2].sc-v[0].sc);
    v[0]=mp(0,0);
    double s = 1./2*abs(v[1].fs*v[2].sc-v[1].sc*v[2].fs);
    double d = 0.0;
    double sum = 0.0;
    for (int i = 0; i < 3; i++) {
        double a = v[i].fs - v[(i+1)%3].fs;
        double b = v[i].sc - v[(i+1)%3].sc;
        d = max(d,sqrt(a*a+b*b));
        sum += sqrt(a*a+b*b);
    }
    cout << setprecision(30) << 2*s*d/(4*s+d*sum) << endl;
    return 0;
}