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:
__author__ = 'Eddie'


def get_filehandler(is_file):
    if is_file:
        return open(file="data")
    else:
        import sys

        return sys.stdin


# custom imports
import math


# custom functions
def get_allrads():
    rads = []
    for n in range(3, 101):
        rads.append((2 * math.pi / n, n))
    return rads


def get_r(a, b, c):
    x_u = (a[0] ** 2 - b[0] ** 2 + a[1] ** 2 - b[1] ** 2) * (a[1] - c[1]) - (
        a[0] ** 2 - c[0] ** 2 + a[1] ** 2 - c[1] ** 2) * (a[1] - b[1])
    x_d = 2 * (a[1] - c[1]) * (a[0] - b[0]) - 2 * (a[1] - b[1]) * (a[0] - c[0])
    x = x_u / x_d
    y_u = (a[0] ** 2 - b[0] ** 2 + a[1] ** 2 - b[1] ** 2) * (a[0] - c[0]) - (
        a[0] ** 2 - c[0] ** 2 + a[1] ** 2 - c[1] ** 2) * (a[0] - b[0])
    y_d = 2 * (a[1] - b[1]) * (a[0] - c[0]) - 2 * (a[1] - c[1]) * (a[0] - b[0])
    y = y_u / y_d
    return x, y


def get_rads(a, b, c, r):
    rads = [_get_rad(a, b, r), _get_rad(a, c, r), _get_rad(b, c, r)]
    return rads


def _get_rad(*args):
    edge = []
    for _i in range(len(args)):
        for _j in range(_i + 1, len(args)):
            length = ((args[_i][0] - args[_j][0]) ** 2 + (args[_i][1] - args[_j][1]) ** 2) ** 0.5
            edge.append(length)
    cos = (edge[1] ** 2 + edge[2] ** 2 - edge[0] ** 2) / (2 * edge[1] * edge[2])
    cos = max(cos, -1)
    return math.acos(cos)


def rad_times(a, b):
    return abs(a - b) < 1E-6 or b % a < 1E-6 or abs(b % a - a) < 1E-6


def get_n(rads, all_rads):
    for rad in all_rads:
        for rad_t in rads:
            if not rad_times(rad[0], rad_t):
                # if rad[1] == 6:
                #     print(rad, rad_t)
                break
        else:
            return rad[1]


def get_R(r, a):
    return ((r[0] - a[0]) ** 2 + (r[1] - a[1]) ** 2) ** 0.5


if __name__ == '__main__':
    fh = get_filehandler(False)
    # fh = get_filehandler(True)
    a, b, c = map(lambda x: [float(v) for v in x.strip().split()], fh.readlines())
    r = get_r(a, b, c)
    rads = get_rads(a, b, c, r)
    all_rads = get_allrads()
    n = get_n(rads, all_rads)
    R = get_R(r, a)
    area = 0.5 * n * R ** 2 * math.sin(2 * math.pi / n)
    print(area)