Time limit: 0.5s
Memory limit: 64MB
Input: sortare.in
Output: sortare.out
Task
Given an array of natural numbers, sort it in non-decreasing order.
Input data
The file sortare.in
contains on the first line a natural number . The next line contains numbers which form the array.
Output data
The file sortare.out
contains on the first line numbers, the sorted array.
Constraints and clarifications
- ,
Example
sortare.in
6
11 8 15 20 5 2
sortare.out
2 5 8 11 15 20