CPython lite logoProblemsContests

50. Sorting #2

 An array consisting of n elements is given. Write a program that sorts the array in non-decreasing order.


Input

The first line contains a natural number, n(1n1000).

The second line contains n numbers separated by spaces, ai(1ai1000).

Output

A single line of the sorted array.


Sample input 1

5
3 1 2 5 4

Sample output 1

5 4 3 2 1

Login to be able to submit.

BasicAlgorithmsData structuresLoops
257 / 15
Solved / unsolved count
1.0 s / 512 MB
Limits