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 time
import math
# start = time.time()

def get_pair(pts):
    for i in range(len(pts)):
        if i!=len(pts)-1:
            yield pts[i], pts[i+1]
        else:
            yield pts[i], pts[0]

class Line():
    def __init__(self, m, c):
        self.m = m
        self.c = c
    def intersection(self, other):
        """y = mx + c"""
        if self.m is not None and other.m is not None:
            x = -1 * (self.c - other.c) / (self.m - other.m)
            y = self.m * x + self.c
        elif self.m is not None and other.m is None:
            x = other.c
            y = self.m * x + self.c
        elif self.m is None and other.m is not None:
            x = self.c
            y = other.m * x + other.c
        else:
            x, y = None, None
        return (x, y)

def find_angle(a,b,c):
    B2 = (a[0]-c[0])**2+(a[1]-c[1])**2
    A2 = (b[0]-c[0])**2+(b[1]-c[1])**2
    C2 = (a[0]-b[0])**2+(a[1]-b[1])**2
    try:
        C = math.acos((A2 + B2 - C2) / (2*math.sqrt(A2)*math.sqrt(B2)))
    except:
        _C = int((A2 + B2 - C2) / (2*math.sqrt(A2)*math.sqrt(B2)))
        C = math.acos(_C)
    return C / (2*math.pi) * 360


pts = [tuple([float(x) for x in input().split()]) for i in range(3)]
# pts = [
#     (17.288379, 68.223317),
#     (48.776683, 71.688379),
#     (23.170559, 106.572762)
# ]
# pts = [
#     (76.820252, 66.709341),
#     (61.392328, 82.684207),
#     (44.267775, -2.378694),
# ]
# find mid pt and centre
lines = []
for pair in get_pair(pts):
    pt0, pt1 = pair[0], pair[1]
    mid_pt = ((pt0[0]+pt1[0])/2, (pt0[1]+pt1[1])/2)
    # print(pt0, pt1, mid_pt)
    if pt0[0] - pt1[0] == 0:
        x = pt0[0]
        _m = 0
    else:
        m = ( pt0[1] - pt1[1] ) / ( pt0[0] - pt1[0] )
        if m != 0:
            _m = -1 / m
        else:
            _m = None
    if _m is not None:
        _c = mid_pt[1] - _m * mid_pt[0]
    else:
        _c = mid_pt[0]
    lines.append(Line(_m,_c))

l1 = lines[0]
l2 = lines[1]
centre = l1.intersection(l2)
thres = 1E-4
for i in range(3,101):
    check = 0
    unit_angle = 360 / i
    for pair in get_pair(pts):
        pt0, pt1 = pair[0], pair[1]
        # print(pt0, pt1)
        angle = find_angle(pt0, pt1, centre)
        # if angle - round(angle, 6) < 1E-6:
        #     angle = round(angle, 6) 
        # print(i,angle,angle % unit_angle, angle % unit_angle-unit_angle)
        if (abs(angle % unit_angle) < thres or abs(angle%unit_angle-unit_angle) < thres):
            check+=1
    if check == 3:
        side_sq = (pt0[0] - centre[0])**2 + (pt0[1] - centre[1])**2
        area = i * (0.5 * side_sq * math.sin(unit_angle/360*2*math.pi))
        # print(i, round(area,7))
        print(round(area,8))
        break