302445: CF470H. Array Sorting

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

H. Array Sortingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

Sorting arrays is traditionally associated with high-level languages. How hard can it be in FALSE? Sort the given array in non-descending order.

Input

The input consists of a single line of space-separated integers. The first number is n (1 ≤ n ≤ 10) — the size of the array. The following n numbers are the elements of the array (1 ≤ ai ≤ 100).

Output

Output space-separated elements of the sorted array.

ExamplesInput
3 3 1 2
Output
1 2 3 
Input
7 12 2 3 44 5 60 2
Output
2 2 3 5 12 44 60 

Input

加入题单

上一题 下一题 算法标签: