CPython lite logoProblemsContests

49. Sorting #1

 An array consisting of n elements is given. Write a program that outputs the array sorted 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

The sorted array in a single line.


Sample input 1

5
3 1 2 5 4

Sample output 1

1 2 3 4 5

Login to be able to submit.

BeginnerAlgorithmsData structuresLoops
583 / 85
Solved / unsolved count
1.0 s / 512 MB
Limits