Problem: Nowadays all circuses in Berland have a round arena with diameter 13 meters, but in the past things were different.

In Ancient Berland arenas in circuses were shaped as a regular (equiangular) polygon, the size and the number of angles could vary from one circus to another. In each corner of the arena there was a special pillar, and the rope strung between the pillars marked the arena edges.

Recently the scientists from Berland have discovered the remains of the ancient circus arena. They found only three pillars, the others were destroyed by the time.

You are given the coordinates of these three pillars. Find out what is the smallest area that the arena could have.

Input

The input file consists of three lines, each of them contains a pair of numbers –– coordinates of the pillar. Any coordinate doesn't exceed 1000 by absolute value, and is given with at most six digits after decimal point.

Output

Output the smallest possible area of the ancient arena. This number should be accurate to at least 6 digits after the decimal point. It's guaranteed that the number of angles in the optimal polygon is not larger than 100.

Examples

Input

0.000000 0.000000
1.000000 1.000000
0.000000 1.000000


Output

1.00000000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int SIZE = 1e5 + 10;
const int INF = 0x3f3f3f3f;
const double eps = 1e-3;
const double PI = atan(1.0) * 4.0;
const long long mod = 1e9 + 7;
struct Node {
  double x, y;
} a[3];
double gcd(double x, double y) {
  if (fabs(x) < eps) return y;
  if (fabs(y) < eps) return x;
  return gcd(y, fmod(x, y));
}
double len[3], ang[3];
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  ;
  for (int i = 0; i < 3; i++) cin >> a[i].x >> a[i].y;
  for (int i = 0; i < 3; i++)
    len[i] = sqrt((a[i].x - a[(i + 1) % 3].x) * (a[i].x - a[(i + 1) % 3].x) +
                  (a[i].y - a[(i + 1) % 3].y) * (a[i].y - a[(i + 1) % 3].y));
  double c = 0;
  for (int i = 0; i < 3; i++) c += len[i];
  c /= 2;
  double S = sqrt(c * (c - len[0]) * (c - len[1]) * (c - len[2]));
  double r = len[0] * len[1] * len[2] / 4 / S;
  for (int i = 0; i < 2; i++) ang[i] = acos(1 - len[i] * len[i] / 2 / r / r);
  ang[2] = 2 * PI - ang[0] - ang[1];
  double t = gcd(ang[0], gcd(ang[1], ang[2]));
  cout << fixed << setprecision(7) << (PI * r * r * sin(t) / t);
  return 0;
}