GBU Programming club loves to play with arrays very much. One day they were thinking whether it is possible to sort an array in descending order in at most one operation by picking up an arbitrary number of elements from the beginning and putting it at last of the array.
You need to write a program that determines if it is possible to sort a given array or not.
Input
Output
For each test case, print a single line containing the string "YES"
if it is possible to sort the array or "NO"
if it is impossible.
Constraints
In the above test case:
In test case 1:
If we take numbers (5,4,3) and put it at the back side of the array like (7,6,5,4,3) the resulting array will be sorted in descending order.
In test case 2:
It can't be sorted.