Convex polygon#2148

Convex polygon

1 second
64 megabytes
Very easy

Determine whether the given polygon is convex.

Input

The first line contains a single integer (3 \leq N \leq 100000). The next lines contain pairs of integers — the coordinates of the vertices of a simple polygon, given in order (either clockwise or counterclockwise). All coordinates are integers with absolute value not exceeding .

Output

Output one line with "YES" if the given polygon is convex, and "NO" otherwise.

Examples

Example 1

Loading
Loading