LearnPy Hub
← Arena
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
solution.py
Output appears here
On One Line? · Python Arena problem · LearnPy Hub