Determine whether two line segments intersect.
Eight numbers — the coordinates of the endpoints of two segments. All input data are integers not exceeding 10000 by absolute value.
Print YES if the segments intersect, and NO otherwise.
Example 1