Given two line segments and , determine the set of points at which these segments intersect.
The input consists of eight integers, each not exceeding 10^4 in absolute value. These integers are the coordinates of points , , , and . Points may coincide, including endpoints of the same segment.
If the segments do not intersect, output Empty. If the segments intersect at a single point, output two numbers—the coordinates of the intersection point. If the intersection is a segment, output four numbers—the coordinates of the endpoints of the segment in lexicographical order (first, the point with the smaller coordinate; if coordinates are equal, the point with the smaller coordinate). All numbers must be printed with a precision of at least decimal places.
Example 1