John likes sorting algorithms very much. He has studied quicksort, merge sort, radix sort and many more.
A long time ago he wrote a lock-free parallel string sorting program. It was a combination of burstsort and multi-key quicksort. To implement burstsort you build a tree of buckets. For each input string you walk down the tree and insert part of the string into the right bucket. When a bucket fills up it "bursts" and becomes a new subtree with new buckets.

Figure G.1: burstsort data structure
Enough about the past. Today John is playing with sorting algorithms again, and this time it is numbers. He has an idea for a new algorithm called "extreme sort". It is extremely fast, with performance levels over nine thousand. Before he tells anyone the details, he wants to be sure that it works correctly.
Verify that the extreme property holds after the first phase of the algorithm. The extreme property is min(xi,j)≥0, where
xi,j={aj−ai9001(1≤i<j≤N)(otherwise)The first line contains a single integer N (1≤N≤1024).
The second line contains N integers a1 a2 … aN (1≤ai≤1024), separated by spaces.
Print one line containing yes if the extreme property holds for the given input, and no otherwise. Use lowercase letters.