On a plane, there are two rays, each defined by a pair of points.
Your task is to calculate the distance between these two rays.
The input consists of four pairs of integers, representing the descriptions of the first and second ray. Each ray is described by the coordinates of its starting point and another point on the ray.
Output a single real number representing the required distance, with a precision of up to the -th decimal place.
Example 1