Numbers in ascending order

Numbers in ascending order. Given three different integers, print YES if they’re given in ascending order, print NO otherwise.

Input

Correct answer

3
5
7

YES

5
3
7

NO

10
30
4

NO

-5
-3
-1

YES

1
10
20

YES

 

Leave a Reply

Your email address will not be published. Required fields are marked *