A sequence of length is sorted if for every .
You may perform the following operation zero or more times: choose an integer with and swap and . Determine whether can be made sorted.
The input is given in the following format.
Print YES if the sequence can be made sorted, and NO otherwise.
The first line contains the integer . The second line contains space-separated integers .