3963: Swap integer

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:7 解决:5

题目描述

Enter 10 integers,
1.Swap the smallest one with the first one
2.Swap the largest one with the last one.

Write a program to complete it, output the 10 exchanged integers.


输入

10 integers.

输出



Exchanged 10 integers, each integer followed by a space (note that there is also a space after the last integer).


样例输入 复制

2 1 3 4 5 6 7 8 10 9

样例输出 复制

1 2 3 4 5 6 7 8 9 10