eolymp
bolt
Try our new interface for solving problems
Problems

The position of points outside the line

The position of points outside the line

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

Input

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

Output

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

Time limit 1 second
Memory limit 128 MiB
Input example #1
0 0 2 4 2 -1 -1
Output example #1
YES