Distance from the point to the ray#2137

Distance from the point to the ray

1 second
64 megabytes
Easy

Find the distance from a given point to a given ray.

Input

Six integers not exceeding in absolute value are given: the coordinates of the point and the coordinates of the beginning and end of the vector.

Output

Output a single number — the distance from the point to the ray defined by the vector, with a precision of 10^{-6}.

Examples

Example 1

Loading
Loading