Place it correctly

0

0 votes
Very-Easy
Problem

We descend so that we can rise again

You are given an array of n elements. Your task is to arrange the elements in non-descending order.

INPUT

First line of input contains n, the number of elements in the array. The next line contains n space separated integers.

OUTPUT

Print the answer to the problem, that is the array in non-descending order.

CONSTRAINTS

1n106

0ai106

where ai is the element of the array.

NOTE - Due to large input file size, use faster i/o methods. And also it can take a little longer than usual to evaluate the solution.

Sample Input
5
3 2 0 9 8
Sample Output
0 2 3 8 9
Time Limit: 0.15
Memory Limit: 256
Source Limit:
Editor Image

?