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:
// https://atcoder.jp/contests/cf16-exhibition-final-open/tasks/cf16_exhibition_final_b
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
#define EPS (1e-9)
#define INF (1e9)
#define INFL (1e18)
#define MOD (1000000007)
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define ALL(obj) (obj).begin(), (obj).end()
#define ALLR(obj) (obj).rbegin(), (obj).rend()
#define BIT(n) (1LL << (n))
// ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
// ll lcm(ll c, ll d) { return c / gcd(c, d) * d; }

struct dist {
    int x, y;
};
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(10);
    dist in[3];
    REP(i, 3) cin >> in[i].x >> in[i].y;
    double a = hypot(in[0].x - in[1].x, in[0].y - in[1].y);
    double b = hypot(in[1].x - in[2].x, in[1].y - in[2].y);
    double c = hypot(in[2].x - in[0].x, in[2].y - in[0].y);
    double s = (a + b + c) / 2;
    double sq = sqrt(s * (s - a) * (s - b) * (s - c));
    double r = 2 * sq / (a + b + c);
    double d = max({a, b, c});
    double x = d / (2 + d / r);
    cout << x << endl;

    return 0;
}