eolymp
bolt
Try our new interface for solving problems
Problems

Sorting

Sorting

Sort the array of integers in non-decreasing order. \InputFile The first line contains an integer $n~(1 \le n \le 1000)$. The second line contains $n$ integers, each not exceeding $2 \cdot 10^9$ in absolute value. \OutputFile Print all $n$ integers in non-decreasing order.
Time limit 1 second
Memory limit 128 MiB
Input example #1
5
9 2 7 1 2
Output example #1
1 2 2 7 9