4124: CF101 - C. Vectors
[Creator : ]
Description
At 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 A:
- Turn the vector by $90^\circ$ clockwise.
- Add to the vector a certain vector C.
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$).
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).
Sample 1 Input
0 0
1 1
0 1
Sample 1 Output
YES
Sample 2 Input
0 0
1 1
1 1
Sample 2 Output
YES
Sample 3 Input
0 0
1 1
2 2
Sample 3 Output
NO