Determine whether a given point lies on a given segment.
Six integers are given: the coordinates of the point, and the coordinates of the endpoints of the segment. All integers do not exceed in absolute value.
Print YES if the point lies on the segment, and NO otherwise.
Example 1
Example 2