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 double eps = 1e-2;
struct gg {
  double x, y;
} pt[10];
double ang[10], r;
double fgcd(double a, double b) {
  return fabs(b - 0) <= eps ? a : fgcd(b, fmod(a, b));
}
double dis(gg a, gg b) {
  return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
}
void get(double a, double b, double c) {
  double S, p, h[4], s[4];
  if (a > b) swap(a, b);
  if (a > c) swap(a, c);
  if (b > c) swap(b, c);
  p = (a + b + c) / 2;
  S = sqrt(p * (p - a) * (p - b) * (p - c));
  h[1] = S * 2 / c;
  s[1] = h[1] / b;
  s[2] = h[1] / a;
  r = a / s[1];
  h[2] = S * 2 / b;
  ang[1] = asin(s[1]);
  ang[2] = asin(s[2]);
  ang[3] = acos(-1) - ang[1] - ang[2];
  return;
}
int main() {
  double edge, dis1, dis2, dis3, ta, S, angg;
  for (int i = 1; i <= 3; i++) scanf("%lf%lf", &pt[i].x, &pt[i].y);
  dis1 = dis(pt[1], pt[2]), dis2 = dis(pt[1], pt[3]), dis3 = dis(pt[2], pt[3]);
  get(dis1, dis2, dis3);
  angg = fgcd(ang[1], fgcd(ang[2], ang[3]));
  ta = tan(angg);
  edge = r * sin(angg);
  S = edge * edge / ta / 4;
  S *= acos(-1) / angg;
  printf("%.6lf", S);
}