Counting sort
Very easy
Execution time limit is 2 seconds
Runtime memory usage limit is 128 megabytes
Use the magic of counting sort: sort numbers in the range .
Input
First line contains number . Then numbers are given that must be sorted.
Output
Print the sorted numbers.
Examples
Input #1
Answer #1
Submissions 10K
Acceptance rate 36%