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

Задача 27075. Belonging of a point to a ray


Input
Six numbers – the coordinates of the point and the coordinates of the start and end of the vector.
 
Output
One line “YES” if the point belongs to the ray defined by the vector and “NO” otherwise.

 

Examples
# Input Output
1 4 0 4 2 4 5 NO