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

class Point:
    def __init__(self, x, y):
        self.x = x
        self.y = y

def circle(p1, p2, p3):
    # http://blog.csdn.net/lijiayu2015/article/details/52541730
#     A1 = 2 * p2.x - 2 * p1.x
#     A2 = 2 * p3.x - 2 * p2.x
#     B1 = 2 * p1.y - 2 * p2.y
#     B2 = 2 * p2.y - 2 * p3.y
#     C1 = p1.y ** 2 + p2.x ** 2 - p1.x ** 2 - p2.y ** 2
#     C2 = p2.y ** 2 + p3.x ** 2 - p2.x ** 2 - p3.y ** 2
    
#     temp = A1 * B2 - A2 * B1
    
#     print(p1, p2, p3)
#     print(A1, A2, B1, B2, C1, C2, temp)
    
    
    x21 = p2.x - p1.x
    x31 = p3.x - p1.x
    y21 = p2.y - p1.y
    y31 = p3.y - p1.y
    M1 = p1.x ** 2 + p1.y ** 2 - p2.x ** 2 - p2.y ** 2
    M2 = p1.x ** 2 + p1.y ** 2 - p3.x ** 2 - p3.y ** 2
    
    x = (y21 * M2 - y31 * M1) / 2 / (y31 * x21 - y21 * x31)
    y = (x21 * M2 - x31 * M1) / 2 / (x31 * y21 - x21 * y31)

#     x = (C1 * B2 - C2 * B1) / temp
#     y = (A1 * C2 - A2 * C1) / temp
    
    return x, y

def calAngle(center, p1, p2):
    va = Point(p1.x - center.x, p1.y - center.y)
    vb = Point(p2.x - center.x, p2.y - center.y)
    
    la = (va.x ** 2 + va.y ** 2) ** 0.5
    lb = (vb.x ** 2 + vb.y ** 2) ** 0.5
    
    cosAngle = round((va.x * vb.x + va.y * vb.y) / (la * lb), 6)
    angle = math.acos(cosAngle) * 180 / math.pi
    return angle

def isMultiple(a, b):
    c = a / b
#     print(c - int(c))
    return abs(c - round(c)) < 0.001

def solve(p1, p2, p3):
    center = Point(*circle(p1, p2, p3))
#    print(center.x, center.y)
    a1 = calAngle(center, p1, p2)
    a2 = calAngle(center, p1, p3)
    a3 = calAngle(center, p2, p3)
#     print(a1, a2, a3)
    
    for n in range(3, 101):
        angle = 360 / n
#         print(n, angle)
        if all(isMultiple(a, angle) for a in (a1, a2, a3)):
            break
    v1 = Point(center.x - p1.x, center.y - p1.y)
    radius = (v1.x ** 2 + v1.y ** 2) ** 0.5
    area = 0.5 * radius * radius * math.sin(angle * math.pi / 180)
    area *= n
    return area

p1 = Point(*map(float, input().split()))
p2 = Point(*map(float, input().split()))
p3 = Point(*map(float, input().split()))
print(solve(p1, p2, p3))