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 itertools
import math

def get_x(p):
    return p[0]

def get_y(p):
    return p[1]

def circumcenter(a, b, c):
    a_x, a_y = get_x(a), get_y(a)
    b_x, b_y = get_x(b), get_y(b)
    c_x, c_y = get_x(c), get_y(c)

    d = 2 * (a_x * (b_y - c_y) + b_x * (c_y - a_y) + c_x * (a_y - b_y))
    u_x = ((a_x ** 2 + a_y ** 2) * (b_y - c_y) + (b_x ** 2 + b_y ** 2) * (c_y - a_y) + (c_x ** 2 + c_y ** 2) * (a_y - b_y)) / d
    u_y = ((a_x ** 2 + a_y ** 2) * (c_x - b_x) + (b_x ** 2 + b_y ** 2) * (a_x - c_x) + (c_x ** 2 + c_y ** 2) * (b_x - a_x)) / d

    return (u_x, u_y)

def distance(a, b):
    return math.sqrt((get_x(a) - get_x(b)) ** 2 + (get_y(a) - get_y(b)) ** 2)

def angle(center, p1, p2):
    a = (get_x(p1) - get_x(center), get_y(p1) - get_y(center))
    b = (get_x(p2) - get_x(center), get_y(p2) - get_y(center))
    try:
        return math.acos((get_x(a) * get_x(b) + get_y(a) * get_y(b)) / (distance(center, p1) * distance(center, p2)))
    except ValueError:
        acos_parameter = (get_x(a) * get_x(b) + get_y(a) * get_y(b)) / (distance(center, p1) * distance(center, p2))
        if acos_parameter < -1:
            return math.acos(-1)
        elif acos_parameter > 1:
            return math.acos(1)
        else:
            print('Center: {0}'.format(center))
            print('p1: {0}'.format(p1))
            print('p2: {0}'.format(p2))
            print('Denominator: {0}'.format(distance(center, p1) * distance(center, p2)))
            print('acos parameter: {0}'.format((get_x(a) * get_x(b) + get_y(a) * get_y(b)) / (distance(center, p1) * distance(center, p2))))
            exit()

def regular_polygon_area(num_sides, circumcircle_radius):
    return 0.5 * num_sides * (circumcircle_radius ** 2) * math.sin(2 * math.pi / num_sides)

def is_near_integer(x):
    return abs(round(x) - x) < 0.001

def solution(p1, p2, p3):
    center = circumcenter(p1, p2, p3)
    #print(center)
    angles = [angle(center, *points) for points in itertools.combinations([p1, p2, p3], 2)]
    #print([angle * 180 / math.pi for angle in angles])
    min_area = float('inf')
    for num_sides in range(3, 101):
        radius_angle = 2 * math.pi / num_sides
        is_valid = True
        for center_point_angle in angles:
            if not is_near_integer(center_point_angle / radius_angle):
                is_valid = False
        if is_valid:
            min_area = min(min_area, regular_polygon_area(num_sides, distance(center, p1)))
    return min_area

if __name__ == '__main__':
    points = [tuple(map(lambda x: float(x), input().split(' '))) for i in range(3)]
    print(solution(*points))