eolymp
bolt
Try our new interface for solving problems
Problems

The position of points outside the line

The position of points outside the line

Time limit 1 second
Memory limit 128 MiB

Find the relative position of two points and the line Ax + By + C = 0.

Input data

Seven numbers - the coordinates of two points and the coefficients A, B, C of the line equation.

Output data

Print "YES", if the points lie on one side from the line and "NO" otherwise.

Examples

Input example #1
0 0 2 4 2 -1 -1
Output example #1
YES