Category

Similar Problems

0715. Sorting

Time limit : 1000 ms
Memory limit : 64 mb

Sort array of integers in nondecreasing order.

   Input

   The first line contains an integer n (1 ≤ n ≤ 1000), second line contains n integers, not exceeding 109 by absolute value.

   Output

   Print all numbers in nondecreasing order.

Samples

Input

Output

1

5

9 2 7 1 2

1 2 2 7 9

 

Tayyorladi: Azat Yusupov
Text from: e-olimp.com