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
from fractions import gcd

# Distance between points A and B
def distance(A,B):
    n = len(A)
    assert len(B) == n
    return sum((A[i]-B[i])**2 for i in range(n))**0.5

# Cosine of angle opposite of b
def cosine(a,b,c):
    return (a*a+c*c-b*b)/(2*a*c)


def circumradius(A,B,C):
    T = [A,B,C]
    L = [distance(T[i],T[(i+1)%3]) for i in range(3)]
    s = sum(L)/2
    a = (s*(s-L[0])*(s-L[1])*(s-L[2]))**0.5
    return L[0]*L[1]*L[2]/(4*a);
def hurdle(a):
    if (a<-1):
        return -1;
    elif (a>1):
        return 1;
    else:
        return a;
def gcd(x,y):
    if (y>x):
        return gcd(y,x);
    if (y==0):
        return x;
    return gcd(y,x%y);

T = [tuple(float(x) for x in input().split(' ')) for i in range(3)]
L = [distance(T[i],T[(i+1)%3]) for i in range(3)]
r = circumradius(T[0],T[1],T[2])
##find angles

angles = [math.acos(hurdle(cosine(r,L[i],r))) for i in range(3)]
##take gcd of 360/angles (rounded) to find number of divisions
divs = [x/(2*math.pi) for x in angles]
divs.sort()

if (math.fabs(divs[0]+divs[1]-divs[2]) < 10**(-6)): ##obtuse angles
    divs[2] = 1 - divs[2]

m = 0
for i in range(3,101):
    i_divs = [x*i for x in divs]
    ind = 0
    for k in i_divs:
        if (math.fabs(int(round(k)) - k) < 10**(-5)):
            ind += 1
    if (ind == 3):
        divs = [int(round(k)) for k in i_divs]
        break;
##print(divs)
n = sum(divs)/gcd(gcd(divs[0],divs[1]),divs[2])
area = n*r*r/2 * math.sin(2*math.pi/n)
print(area)