The package for this problem was not updated by the problem writer or Codeforces administration after we've upgraded the judging servers. To adjust the time limit constraint, a solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then the value 800 ms will be displayed and used to determine the verdict.

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

The problem statement has recently been changed. View the changes.

×
C. Vectors

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputAt a geometry lesson Gerald was given a task: to get vector *B* out of vector *A*. Besides, the teacher permitted him to perform the following operations with vector *А*:

- Turn the vector by 90 degrees clockwise.
- Add to the vector a certain vector
*C*.

Operations could be performed in any order any number of times.

Can Gerald cope with the task?

Input

The first line contains integers *x*_{1} и *y*_{1} — the coordinates of the vector *A* ( - 10^{8} ≤ *x*_{1}, *y*_{1} ≤ 10^{8}). The second and the third line contain in the similar manner vectors *B* and *C* (their coordinates are integers; their absolute value does not exceed 10^{8}).

Output

Print "YES" (without the quotes) if it is possible to get vector *B* using the given operations. Otherwise print "NO" (without the quotes).

Examples

Input

0 0

1 1

0 1

Output

YES

Input

0 0

1 1

1 1

Output

YES

Input

0 0

1 1

2 2

Output

NO

Codeforces (c) Copyright 2010-2022 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: May/19/2022 05:10:01 (f1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|