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

math.hypot = lambda x, y: math.sqrt(x*x + y*y)

def beta(x11, y11, x12, y12):
    t = (x11*x12 + y11*y12)/(math.hypot(x11, y11)*math.hypot(x12, y12))
    if math.fabs(t) > 1.0:
        t = round(t)

    return math.acos(t)

#sys.stdin = open('input.txt')

EPS = 1e-03
PI = math.pi

x1, y1 = map(float, input().split())
x2, y2 = map(float, input().split())
x3, y3 = map(float, input().split())

l = math.hypot(x1 - x2, y1 - y2)*0.5

xm = min(x1, x2) + math.fabs(x1 - x2)*0.5
ym = min(y1, y2) + math.fabs(y1 - y2)*0.5

xp = y1 - y2
yp = x2 - x1
p = math.hypot(xp, yp)
last = 0

mark = False
i = 3
while i < 101:
    phi = 2.0*PI/float(i)
    j = i//2
    while j > 0:
        h = float(l)/math.tan(phi*float(j)*0.5)
        k = float(h)/float(p)

        x0_pos = xm - k*xp
        y0_pos = ym - k*yp
        x0_neg = xm + k*xp
        y0_neg = ym + k*yp
        r = math.hypot(x1 - x0_pos, y1 - y0_pos)

        c1 = math.fabs(math.hypot(x3 - x0_pos, y3 - y0_pos) - r) < EPS
        c2 = math.fabs(math.hypot(x3 - x0_neg, y3 - y0_neg) - r) < EPS
        if c1 or c2:
            if c1:
                x0, y0 = x0_pos, y0_pos
            else:
                x0, y0 = x0_neg, y0_neg

            #print(((x3 - x0)*(x2 - x0) + (y3 - y0)*(y2 - y0))/(math.hypot(x3 - x0, y3 - y0)*math.hypot(x2 - x0, y2 - y0)))
            b1 = beta(x3 - x0, y3 - y0, x1 - x0, y1 - y0)
            b2 = beta(x3 - x0, y3 - y0, x2 - x0, y2 - y0)
            b3 = beta(x1 - x0, y1 - y0, x2 - x0, y2 - y0)
            div = lambda b: math.fabs(b/phi - round(b/phi)) < EPS

            last = 0.5*float(r)*float(r)*math.sin(phi)*float(i)

            if div(b1) and div(b2) and div(b3):
                print(last)
                mark = True
                break

        j -= 1
    if mark:
        break

    i += 1

if not mark:
    print(last)
# I'm so dumb.....................