Count Sort#188

Count Sort

2 seconds
128 megabytes
Very easy (≈850)

Using the Count Sort algorithm, sort numbers given in the interval [0; 10^5] in ascending order.

Input

The first line provides the number of numbers n~(1 \le n \le 10^6). The next line contains numbers in the interval [0; 10^5].

Output

Output the numbers in ascending order.

Examples

Example 1

Loading
Loading