Determine whether two line segments intersect.
Onput
Eight numbers - the coordinates of the ends of two segments. All input data are integers not exceeding modulo 10000.
One line of "YES", if the segments intersect, and "NO" otherwise.