AdvancedRating 1700
Do the Segments Touch?
Print YES if the two line segments share at least one point, otherwise NO.
Input
Two lines 'x1 y1 x2 y2'.
Output
YES or NO.
Sample 1
Input
0 0 4 4 0 4 4 0
Output
YES
Sample 2
Input
0 0 1 1 2 2 3 3
Output
NO
Output appears here