EasyRating 1000
On One Line?
Print YES if all the points lie on one straight line.
Input
n ≥ 2, then n lines 'x y'.
Output
YES or NO.
Sample 1
Input
4 1 2 2 3 3 4 4 5
Output
YES
Sample 2
Input
3 1 1 2 2 3 4
Output
NO
Output appears heren ≥ 2, then n lines 'x y'.
YES or NO.
4 1 2 2 3 3 4 4 5
YES
3 1 1 2 2 3 4
NO
Output appears here