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 PYTHON3):

Solution:
import math
import sys

a, b = map(float, input().split())
c, d = map(float, input().split())
e, f = map(float, input().split())
p = c - a
q = d - b
r = c*c + d*d - a*a - b*b
s = e - a
t = f - b
u = e*e + f*f - a*a - b*b
y0 = (p*u - r*s) / (2*(p*t - q*s))
x0 = (r - 2*q*y0) / (2*p)
radius = math.sqrt((x0 - a)**2 + (y0 - b)**2)
print(y0, x0, file=sys.stderr)
print(math.hypot(a - x0, b - y0), file=sys.stderr)
print(math.hypot(c - x0, d - y0), file=sys.stderr)
print(math.hypot(e - x0, f - y0), file=sys.stderr)
dx = a - x0
dy = b - y0
angles = list(map(lambda t: math.atan2(*t),
    [ (b - y0, a - x0), (d - y0, c - x0), (f - y0, e - x0) ]))
angle_i = (2 * math.pi + angles[1] - angles[0]) % (2 * math.pi)
angle_j = (2 * math.pi + angles[2] - angles[0]) % (2 * math.pi)
if angle_i > angle_j:
    angle_i, angle_j = angle_j, angle_i
ratio = angle_j / angle_i
print(angle_i, angle_j, ratio, file=sys.stderr)

for n in range(3, 101):
    slice = 2 * math.pi / n
    if abs(round(angle_i / slice) - angle_i / slice) > 1e-5:
        continue
    if abs(round(angle_j / slice) - angle_j / slice) > 1e-5:
        continue
    for j in range(2, n + 1):
        for i in range(1, j):
            r = j / i
            if abs(r - ratio) > 1e-5:
                continue
            print(n, i, j, angle_i / slice, angle_j / slice, file=sys.stderr)
            area = radius ** 2 * n * \
                    math.sin(math.pi / n) * math.cos(math.pi / n)
            print(area)
            sys.exit()