Problem2317--交换

2317: 交换

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1  Solved: 1
[Status] [Submit] [Creator:]

Description

输入n个不相等的正整数,并将这n不相等的正整数中的最小值与第一个数交换.

Input

输入两行,第一行一个整数n(n大于2小于20),表示需要输入的整数个数;第二行n个整数,每个整数之间用空格隔开(正整数的值不超过200)。

Output

输出一行,即交换后的n个数。(数字之间用空格隔开)

Sample Input Copy

6
3 4 2 5 8 9

Sample Output Copy

2 4 3 5 8 9

Source/Category