Write a program that checks if N numbers are sorted according to the ascending order (from the smallest number to the largest one).
The first line contains the number N.
The other lines contain N numbers.
Output "YES" if N numbers are sorted in ascending order, otherwise, output "NO".