Counting sort#2327

Counting sort

2 seconds
128 megabytes
Very easy

Use the magic of counting sort: sort numbers in the range [0, 10^5].

Input

The first line contains the number (1 \le n \le 10^6). The next numbers are the sequence to be sorted.

Output

Print the sorted numbers.

Examples

Example 1

Loading
Loading