The array is sorted with selection sort in ascending order. How many times does the first element in initial array change its position?
The first line contains the number of elements in array n (1 ≤ n ≤ 1000). The second line contains the elements of array. It is known that all elements in array are different and not greater than 10^9
by absolute value.
Print the number of movements of the first element.