Point on a segment#2134

Point on a segment

1 second
122.174 megabytes
Easy

Determine whether a given point lies on a given segment.

Input

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.

Output

Print YES if the point lies on the segment, and NO otherwise.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading