Sort Ascending

VERY EASY · C · 2000ms

Coach Imran is arranging players by height for the sports day parade. His first request: sort the whole line of player heights from shortest to tallest. Read N integers and print them sorted in non-decreasing order.

Input

First line N, second line N integers.

Output

N integers sorted ascending.

Constraints

1 ≤ N ≤ 10^5

Sample Input

4
3 1 4 2

Sample Output

1 2 3 4
main.c
Loading editor…

Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.

Sort Ascending · DIU ContestHub