Given a 3-dimension ellipsoid(椭球面)
your task is to find the minimal distance between the original point (0,0,0) and points on the ellipsoid. The distance between two points (x
1,y
1,z
1) and (x
2,y
2,z
2) is defined as
There are multiple test cases. Please process till EOF.
For each testcase, one line contains 6 real number a,b,c(0 < a,b,c,< 1),d,e,f
(0 ≤ d,e,f < 1), as described above.
It is guaranteed that the input data forms a ellipsoid. All numbers are fit in double.
For each test contains one line. Describes the minimal distance. Answer will be considered as correct if their absolute error is less than 10
-5.