Олимпиадный тренинг

Задача 21774. N0SC0P3 360


Задача

Темы:
John aka xXx_1337_7R1k$#073R_xXx is learning the great art of aimless shooting. He has already mastered a few simple shots, and is now learning one of the most basic ones, the so-called noscope 360. It is quite difficult, but he is finally starting to get it, and now he wants to know if he we will represent it as a beam).
 
Input
In the first line enter 2 numbers X0 and Y0 - the coordinates of the point where John is standing (-10 <= X0, Y0 <= 10).
The second line contains 2 numbers vX and vY - coordinates of the vector along which the beam is directed (-10 <= vX, vY <= 10).
In the third line enter 2 numbers X and Y - target coordinates (-50 <= X, Y <= 50).
 
Output
Print the word "Yes" if John succeeded, and "No" otherwise.
 
Examples
# Input Output
1
1 1
-1 1
-2 3
No