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:
# -*- coding:UTF-8 -*-
# Author：Tiny Snow
# Date: Mar/13/2021 19:45
# Codeforces Beta Round #1
# C. Ancient Berland Circus

#==============================================================Solution
from math import acos, sin, pi

d1 = list(map(float, input().split()))
d2 = list(map(float, input().split()))
d3 = list(map(float, input().split()))
# 计算三点间的距离
d12 = ((d1[0] - d2[0]) ** 2 + (d1[1] - d2[1]) ** 2) ** 0.5
d13 = ((d1[0] - d3[0]) ** 2 + (d1[1] - d3[1]) ** 2) ** 0.5
d23 = ((d2[0] - d3[0]) ** 2 + (d2[1] - d3[1]) ** 2) ** 0.5
# 计算三角形面积
p = (d12 + d13 + d23) / 2
S = (p * (p - d12) * (p - d13) * (p - d23)) ** 0.5
# 计算外接圆半径
R = ((d12 * d13 * d23) / (4 * S))
# 计算圆心角
angle12 = acos(round(1 - (d12 ** 2) / (2 * (R ** 2)), 9))
angle13 = acos(round(1 - (d13 ** 2) / (2 * (R ** 2)), 9))
angle23 = 2 * pi - angle12 - angle13
# 根据圆心角的最大公约数，算出正多边形的面积
def float_gcd(a1, a2):
    if abs(a1) < abs(a2):
        return float_gcd(a2, a1)
    if abs(a2) <= 0.00001:
        return abs(a1)
    return float_gcd(a2, a1 % a2)
min_angle = float_gcd(float_gcd(angle12, angle13), angle23)
n = 2 * pi / min_angle
S_ans = 0.5 * n * (R ** 2) * sin(min_angle)
print('%.6f'%S_ans)