Problems
Distance from the point to the beam
Distance from the point to the beam
Find the distance from a given point to a given beam.
\InputFile
Six integers not exceeding modulo \textbf{10000}, - coordinates of the point and the coordinates of the beginning and end of the vector.
\OutputFile
One number - the distance from the point to the beam, defined by a vector, to within \textbf{10^\{-6\}}.
Input example #1
2 1 1 1 0 2
Output example #1
1.000000