As we all know bbz is very smart.Today he want to make difficult to a new acmer wyy.He give wyy a set of numbers.His mission is to find out the smallest one and exchange with the first number.Can you help the rookie?
the first linre is the number of numbers N
and the next line is a set of numbers
Multiple data read in
4
2 1 3 4
5
5 4 3 2 1
1 2 3 4
1 4 3 2 5