Circle and line#359

Circle and line

1 second
128 megabytes
Very easy

There is a circle of radius with center at , and a line given by the coordinates of its two points. Find the length of the segment of the line that lies inside the circle.

Input

One line contains the radius of the circle , the coordinates of the center of the circle, and the coordinates of two points on the line. All numbers are integers and do not exceed in absolute value.

Output

Print the length of the line segment inside the circle with digits after the decimal point. If the circle and the line do not intersect, print ; if they touch, print .

Examples

Example 1

Loading
Loading