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

def theatresquare(n,m,a):
    return ((n-1)//a + 1)*((m-1)//a + 1)

# n,m,a = list(map(int,input().split()))
# print(theatresquare(n,m,a))

def convert(x):
    s = ""
    while x > 0:
        a = x%26
        x = x//26
        if a == 0:
            a = 26
            x -= 1
        s = chr(a-1+ord('A')) + s
    return s

def convertindex(x):
    i = 0
    while (x[i] <= 'Z') and (x[i] >= 'A'):
        i += 1
    j = i
    while (j < len(x)) and (x[j] <= '9') and (x[j] >= '0'):
        j += 1
    if j == len(x):
        s = 0
        for j in range(i):
            s = (ord(x[j]) - ord('A')+1) + 26*s
        return 'R' + x[i:] + 'C' + str(s)
    else:
        while (x[i] <= '9') and (x[i] >= '0'):
            i += 1
        return convert(int(x[i+1:])) + x[1:i]

# cases = int(input())
# for _ in range(cases):
#     l = input()
#     print(convertindex(l))

def berlandcircus(A,B,C):
    a = (B[0] - C[0])**2 + (B[1] - C[1])**2
    b = (A[0] - C[0])**2 + (A[1] - C[1])**2
    c = (B[0] - A[0])**2 + (B[1] - A[1])**2

    la = math.acos(abs((b+c-a)/(2*math.sqrt(b)*math.sqrt(c))))/math.pi
    lb = math.acos(abs((c-b+a)/(2*math.sqrt(a)*math.sqrt(c))))/math.pi
    lc = math.acos(abs((b-c+a)/(2*math.sqrt(a)*math.sqrt(b))))/math.pi

    i = 3
    while i < 101:
        if abs(la*i-round(la*i)) < 0.00001:
            if abs(lb*i-round(lb*i)) < 0.00001:
                if abs(lb*i-round(lb*i)) < 0.00001:
                    return round(i*0.125*a*math.sin(2*math.pi/i)/math.sin(la*math.pi)**2,6)
        i += 1
    


A = list(map(float,input().split()))
B = list(map(float,input().split()))
C = list(map(float,input().split()))

print(berlandcircus(A,B,C))