SART - Sorting

You are given an array of numbers. Sort them. No tricks here. Just sort and print them.

Input
The first line of input contains n (1 <= n <= 100), the total number of numbers in the array.
The second line contains n numbers, separated by a single space. Each number in the array is between -10^6 to +10^6 (inclusive, 32-bit integer type will work fine).

Output
Print a line containing the sorted array of the given numbers. Each number should be separated by a single space.

Example
Input
5
9 8 7 6 5

Output
5 6 7 8 9


Added by:Kousik Kumar
Date:2013-09-12
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64
Resource:Common problem

hide comments
2023-03-19 22:27:05 Simes
No AC solutions at all for this simple problem means it must have bad test data.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.