Find the distance from a given point to a specified interval.
Six numbers - the coordinates of the point and the coordinates of the endpoints. All input data are integers not exceeding modulo 10000.
One number - the distance from the point to the segment with an accuracy of less than 10^{-5}.