eolymp
bolt
Try our new interface for solving problems
Problems

Point on a ray

Point on a ray

Determine whether a given point belongs to the ray. \InputFile $6\:$ numbers are given --- the coordinates of the point and the coordinates of the beginning and end of the vector. All input data are integers not exceeding $10000$ by absolute value. \OutputFile Print \textbf{YES} if the point belongs to the ray, and \textbf{NO} otherwise.
Time limit 1 second
Memory limit 128 MiB
Input example #1
1 6 3 7 5 8
Output example #1
NO