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:
"""
Codeforces
1C - Ancient Berland Circus
http://codeforces.com/problemset/problem/1/C

Héctor González Belver
11/06/2018
"""
import sys
import math



def float_gcd(a, b, rtol = 0, atol = 1e-05):
    t = min(abs(a), abs(b))
    while abs(b) > rtol * t + atol:
        a, b = b, a % b
    return a

def main():
  point_A = [float(x) for x in sys.stdin.readline().strip().split()]
  point_B = [float(x) for x in sys.stdin.readline().strip().split()]
  point_C = [float(x) for x in sys.stdin.readline().strip().split()]
  
  #Triangle
  side_a = math.hypot(point_B[0] - point_C[0], point_B[1] - point_C[1])
  side_b = math.hypot(point_A[0] - point_C[0], point_A[1] - point_C[1])
  side_c = math.hypot(point_A[0] - point_B[0], point_A[1] - point_B[1])

  #Semiperimeter of the triangle
  semiperimeter_T = (side_a + side_b + side_c)/2
  
  #Area of triangle: Heron's formula
  area_T = (semiperimeter_T*(semiperimeter_T - side_a)*(semiperimeter_T - side_b)*(semiperimeter_T - side_c))**0.5

  #Angles of triangle: Law of cosines
  angle_A = math.acos((side_b**2 + side_c**2 - side_a**2)/(2*side_b*side_c))
  angle_B = math.acos((side_a**2 + side_c**2 - side_b**2)/(2*side_a*side_c))
  angle_C = math.acos((side_a**2 + side_b**2 - side_c**2)/(2*side_a*side_b))

  #Circumradius (R) of the triangle = circumradius of possible convex regular n-gons
  R = (side_a*side_b*side_c)/(4*area_T)

  #Angles of the triangle are inscribed angles of circumcircle with center O --> inscribed angles theorem: relates the measure of an inscribed angle to that of the central angle subtending the same arc 
  #-->angle_BOC = 2*angle_A
  #-->angle_AOC = 2*angle_B
  #-->angle_AOB = 2*angle_C

  #Central angle of convex regular n-gon = 2*pi/n
  #--> angle_BOC = i * 2*pi/n ==> angle_A = i * pi/n
  #--> angle_AOC = j * 2*pi/n ==> angle_B = j * pi/n
  #--> angle_AOB = k * 2*pi/n ==> angle_C = k * pi/n
  #i + j + k = n ( i,j,k,n positive integers)
  #==>mimimum area==>minimum n==> gcd(angle_A, angle_B, angle_C) = pi/n
  #==>n=pi/gcd(angle_A, angle_B, angle_C) 
  n = math.pi/float_gcd(float_gcd(angle_A, angle_B), angle_C)

  #Area of convex regular n-gons by circumradius
  A = (math.sin(2*math.pi/n)*n*R**2)/2

  sys.stdout.write("{:.6f}".format(A)+"\n")
    

if __name__ == '__main__': 
  main()