~/algor $ cat problems/saralash-osish-tartibida
Sort in increasing order
Easy
1000 ms
128 MB
20%
$n$ integers $a_{1}, a_{2}, \dots, a_{n}$ are given. Print them in increasing order (from the smallest to the largest). Each of the equal numbers is printed as many times as it occurs.
Input
The first line contains a positive integer $n$. The second line contains $n$ integers $a_{i}$ separated by spaces.
Output
One line with $n$ integers separated by spaces — the numbers in increasing order.
Note
$1 \le n \le 2 * 10^{5}$
$-10^{9} \le a_{i} \le 10^{9}$
Examples
Input #1
5 3 1 4 1 5
Output #1
1 1 3 4 5
Input #2
4 10 -2 7 0
Output #2
-2 0 7 10