Find the distance between two segments.
Eight integers — the coordinates of the four endpoints of two segments. All input data are integers whose absolute values do not exceed .
One number — the distance between the segments, with an accuracy of at least 10^{-6}.
Example 1