Find distance between two segments.
Eight of integers - the coordinates of the four ends of two segments. All input data are integers not exceeding modulo 10000.
One number - the distance between the segments with an accuracy of less than 10^{-6}.