1811: 【CSP数组】数的排序▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:7 Solved:7

Description

输入 lns="http://www.w3.org/1998/Math/MathML">n 个不超过 lns="http://www.w3.org/1998/Math/MathML">30000 的整数(lns="http://www.w3.org/1998/Math/MathML">n10 )。然后求出每个数的数字和,再按每个数的数字和由小到大排列输出。

Input

第一行为整数 lns="http://www.w3.org/1998/Math/MathML">n

第二行为 lns="http://www.w3.org/1998/Math/MathML">n 个整数。

Output

由小到大排列的每个数的数字和(每个数之间保留一个空格)。

Sample Input Copy

4
33 104 87 16

Sample Output Copy

5 6 7 15