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 <iostream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <algorithm>
#include <set>
#include <map>
#include <bitset>
#include <cmath>
#include <functional>
#include <complex>
#define vv(a, b, c, d) vector<vector<d> >(a, vector<d>(b, c))
#define vvi vector<vector<int> >
#define vvl vector<vector<ll> >
#define vll vector<ll>
#define rep(a, b, c) for(ll c=a;c<b;c++)
#define re(b, c) for(ll c=0;c<b;c++)
typedef long long int ll;
typedef long double ld;
using namespace std;
#include <iomanip>
int main(int argc, char const *argv[]) {
  ld a, b, l = 0.0, r = 10000.0;
  std::cin >> a >> b; complex<ld> x(a, b);
  std::cin >> a >> b; complex<ld> y(a, b);
  std::cin >> a >> b; complex<ld> z(a, b);
  ld xy = abs(x-y), xz = abs(x-z), yz = abs(y-z);
  ld ar_A = abs(arg(y-x)-arg(z-x));
  ld ar_B = abs(arg(z-y)-arg(x-y));
  ld ar_C = abs(arg(x-z)-arg(y-z));
  //std::cout << ar_A << " " << ar_B << " " << ar_C << '\n';

  if(ar_A>M_PI) ar_A= 2*M_PI-ar_A;
  if(ar_B>M_PI) ar_B= 2*M_PI-ar_B;
  if(ar_C>M_PI) ar_C= 2*M_PI-ar_C;
  ar_A /= 2, ar_B/=2, ar_C/=2;
  //std::cout << ar_A << " " << ar_B << " " << ar_C << '\n';
  while(r - l > 1e-12){
    ld mid = (l+r)/2;
    ld A = mid/tan(ar_A);
    ld B = mid/tan(ar_B);
    ld C = mid/tan(ar_C);
    if(A+B+2*mid<=xy||B+C+2*mid<=yz||A+C+2*mid<=xz) l = mid;
    else r = mid;
  }
  std::cout << fixed << setprecision(20) << r << '\n';
  return 0;
}