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;
double gcd(double a, double b) {
  if (fabs(b) < 1E-2) return a;
  if (fabs(a) < 1E-2) return b;
  return gcd(b, fmod(a, b));
}
struct Point {
  double x, y;
  void input() { cin >> x >> y; }
  void print() { cout << x << ' ' << y << '\n'; }
  Point operator+(const Point &a) const { return (Point){x + a.x, y + a.y}; }
  Point operator-(const Point &a) const { return (Point){x - a.x, y - a.y}; }
  Point operator*(const double &a) const { return (Point){x * a, y * a}; }
  double operator*(const Point &a) const { return x * a.x + y * a.y; }
};
struct Line {
  Point a, b;
  void print() {
    a.print();
    b.print();
  }
  double Length() {
    Point c = b - a;
    return sqrt(c.x * c.x + c.y * c.y);
  }
};
struct Lineo {
  double a, b, c;
  void Convert(Line s) {
    a = s.b.y - s.a.y, b = s.a.x - s.b.x, c = -a * s.a.x - b * s.a.y;
  }
};
double angle(Line a) {
  Lineo s;
  s.Convert(a);
  return s.a / s.b;
}
Point MidPoint(Line l) {
  Point ans;
  ans = l.a + l.b, ans = ans * 0.5;
  return ans;
}
Line MidPlumd(Line l) {
  Point mid = MidPoint(l);
  Point delta = l.b - l.a;
  Point z = (Point){mid.x + delta.y, mid.y - delta.x};
  return (Line){mid, z};
}
Point InterPoint(Line a, Line b) {
  Lineo l1, l2;
  l1.Convert(a), l2.Convert(b);
  return (Point){(l1.b * l2.c - l2.b * l1.c) / (l1.a * l2.b - l2.a * l1.b),
                 (l2.a * l1.c - l1.a * l2.c) / (l1.a * l2.b - l2.a * l1.b)};
}
Point CenterPoint(Point a, Point b, Point c) {
  Line l1 = (Line){a, b};
  Line l2 = (Line){b, c};
  Line l3 = MidPlumd(l1), l4 = MidPlumd(l2);
  return InterPoint(l3, l4);
}
double TanLine(Point a, Point b, Point c) {
  Line l1 = (Line){a, b}, l2 = (Line){b, c};
  double a1 = angle(l1), a2 = angle(l2);
  return abs((a1 - a2) / (1 + a1 * a2));
}
double Angle(Point a, Point b, Point c) {
  double as = TanLine(a, b, c);
  as = atan(as);
  Point aa = a - b, bb = c - b;
  if (aa * bb < 0) as = 3.1415926 - as;
  return as;
}
Point a, b, c;
Point root;
double lon;
int main() {
  a.input(), b.input(), c.input();
  root = CenterPoint(a, b, c);
  double a1 = Angle(a, root, c), a2 = Angle(a, root, b), a3;
  a3 = 2 * 3.141592653589793 - a1 - a2;
  double ans = gcd(a1, gcd(a2, a3));
  ans = 2 * 3.141592653589793 / ans;
  Line bian = (Line){a, root};
  lon = bian.Length();
  printf("%.7f", ans * cos(3.141592653589793 / ans) *
                     sin(3.141592653589793 / ans) * lon * lon);
  return 0;
}