The position of points outside the line#2135

The position of points outside the line

1 second
128 megabytes
Very easy

Determine on which sides of the line Ax + By + C = 0 two given points are located.

Input

Seven integers are given: the coordinates of the two points and the coefficients , , of the line.

Output

If both points are on the same side of the line, output YES; otherwise, output NO.

Examples

Example 1

Loading
Loading