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 ll long long int

double calc_cos(double xa, double xb, double xc, double ya, double yb, double yc) {
    double c;
    c = ((xb - xa) * (xc - xa) + (yb - ya) * (yc - ya)) /
        (sqrt((xb - xa)*(xb - xa) + (yb - ya)*(yb - ya)) *
         sqrt((xc - xa)*(xc - xa) + (yc - ya)*(yc - ya)));
    return c;
}

double calc_rad(double xa, double xb, double ya, double yb, double ta, double tb) {
    double r;
    double l;
    l = sqrt((xb - xa)*(xb - xa) + (yb - ya)*(yb - ya));
    r = l / (2 + 1/tan(ta) + 1/tan(tb));
    return r;
}

int main() {

    double x1, x2, x3;
    double y1, y2, y3;
    cin >> x1 >> y1;
    cin >> x2 >> y2;
    cin >> x3 >> y3;

    double c1, c2, c3;
    c1 = calc_cos(x1, x2, x3, y1, y2, y3);
    c2 = calc_cos(x2, x3, x1, y2, y3, y1);
    c3 = calc_cos(x3, x1, x2, y3, y1, y2);

    double t1, t2, t3;
    t1 = acos(c1) / 2;
    t2 = acos(c2) / 2;
    t3 = acos(c3) / 2;

    double r1, r2, r3;
    r1 = calc_rad(x1, x2, y1, y2, t1, t2);
    r2 = calc_rad(x2, x3, y2, y3, t2, t3);
    r3 = calc_rad(x3, x1, y3, y1, t3, t1);

    cout << fixed << setprecision(15) << max(max(r1, r2), r3) << endl;

    return 0;
}