← Problem book: C Lesson 54 of 96 · 10 XP

Is it increasing

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

The first line contains the count of numbers n (n ≥ 1), the second — the n integers themselves, separated by spaces.

Print YES if each next number is strictly greater than the previous one, otherwise NO.

Example

Input:

4
1 3 5 9

Output:

YES

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.