Little Chris is bored during his physics lessons (too easy), so he has built a toy box to keep himself occupied. The box is special, since it has the ability to change gravity.

There are n columns of toy cubes in the box arranged in a line. The i-th column contains a_{i} cubes. At first, the gravity in the box is pulling the cubes downwards. When Chris switches the gravity, it begins to pull all the cubes to the right side of the box. The figure shows the initial and final configurations of the cubes in the box: the cubes that have changed their position are highlighted with orange. [Image] 

Given the initial configuration of the toy cubes in the box, find the amounts of cubes in each of the n columns after the gravity switch!


-----Input-----

The first line of input contains an integer n (1 ≤ n ≤ 100), the number of the columns in the box. The next line contains n space-separated integer numbers. The i-th number a_{i} (1 ≤ a_{i} ≤ 100) denotes the number of cubes in the i-th column.


-----Output-----

Output n integer numbers separated by spaces, where the i-th number is the amount of cubes in the i-th column after the gravity switch.


-----Examples-----
Input
4
3 2 1 2

Output
1 2 2 3 

Input
3
2 3 8

Output
2 3 8 



-----Note-----

The first example case is shown on the figure. The top cube of the first column falls to the top of the last column; the top cube of the second column falls to the top of the third column; the middle cube of the first column falls to the top of the second column.

In the second example case the gravity switch does not change the heights of the columns.

Difficulty: interview

Starter code:

Solutions:
cols = int(input())
nums = [int(i) for i in input().split()]

nums = sorted(nums)
out = ""
for num in nums: out=out+str(num)+" "
print(out[:-1])


n = int(input())
a = list(map(int,input().split()))
cnt = [0] * 101
for i in a:
    cnt[i] +=1
ans = [0] * 100
for i in range(n-1,-1,-1):
    for j in range(100,0,-1):
        if cnt[j]>0:
            ans[i] = j
            cnt[j]-=1
            break
print(*ans[:n])

_ = int(input())
N = list(map(int, input().split()))
print(" ".join(map(str, sorted(N))))


n = int(input())
inp = [int(x) for x in input().split()]

inv = [0 for x in range(0, 147)]

for x in inp:
    for v in range(0, x):
        inv[v] += 1


res = []
for i in range(0, n):
    x = 0
    while (inv[x] >= n - i):
        x += 1
    res.append(str(x))

print(' '.join(res))


num=input()
Line_1=input().split(' ')
Line_2=[]
for thing in Line_1:
    Line_2.append(int(thing))
Line_2.sort()
string=''
for x in range(len(Line_2)-1):
    string+=(str(Line_2[x]))
    string+=' '
string+=str(Line_2[-1])
print(string)


n = int(input())
a = [int(i) for i in input().split()]
d = [0] * max(a)
for i in a:
    for j in range(i):
        d[j] += 1
res = [0] * max(d)
for i in d:
    for j in range(i):
        res[j] += 1
res.reverse()
print(" ".join([str(i) for i in res]))


n = int(input())
a = list(map(int, input().split(" ")))

m = max(a)

w = [0] * m
r = [0] * n

for i in range(m):
    for j in range(n):
        if a[j] >= i + 1:
            w[i] += 1

#print(w)

for j in range(n):
    for i in range(m):
        if w[i] > n - (j + 1):
            r[j] += 1

#print(r)
        
res = [str(i) for i in r]
res = " ".join(res)
print(res)



input()
print(*sorted(map(int, input().split())))


n = int(input())
a = list(map(int,input().split()))

for i in range(n-1,0,-1):
    for j in range(i-1,-1,-1):
        if a[j]-a[i]>0:
            diff = a[j]-a[i]
            a[i] += diff
            a[j] -= diff

print(' '.join([str(v) for v in a]))


n = int(input())
l = list(map(int, input().split()))
l.sort()
print(*l)


a = []
n = int(input())
a = list(map(int, input().split()))
a = sorted(a)
for i in range(n):
    print(a[i], end = ' ')

n = int(input())
a = map(int, input().split())
print(' '.join(map(str, sorted(a))))

input()
print(' '.join(map(str, sorted(map(int, input().split())))))

a=input()
for i in sorted(list(map(int,input().split()))):
    print(i,end=' ')

n = int(input())
a = [int(i) for i in input().split()]
box = [[0]*100 for i in range(n)]
for i in range(n):
    for j in range(a[i]):
        box[i][j] = 1
rows = []
for i in range(max(a)):
    row = 0
    for j in range(n):
        if box[j][i] == 1:
            row += 1
    rows.append(row)
for i in range(1, n+1):
    for j in range(len(rows)):
        if i <= rows[j]:
            box[-i][j] = 1
        else:
            box[-i][j] = 0
ans = ''
for collumn in box:
    ans += str((sum(collumn))) + ' '
print(ans[:-1])


N = map(int, input().split())

A = sorted(list(map(int, input().split())))

for i in A:
    print(i, end = ' ')


from sys import stdin

inp = stdin
inp.readline()
nums = [ int(x) for x in inp.readline().strip().split() ]
nums.sort()
nums = [ str(x) for x in nums ]
print(' '.join(nums))



input()
cs = list(map(int, input().split(" ")))
cs.sort()
print(" ".join([str(c) for c in cs]))

n=int(input())
a=list(map(int,input().split()))
li=[ sum( x>=i for x in a) for i in range(1,101)]
print(*list( sum( x+i>=n for x in li ) for i in range(0,n) ) )


n = int(input())

a = input().split()
for i in range(0,n):
    a[i] = int(a[i])
a.sort()

for i in range(0,n):
    print(a[i],end=' ')


input()
[print(x, end=' ') for x in sorted(list(map(int, input().split())))]


n = int(input())
a = list(map(int, input().split(' ')))
a = sorted(a)
s = ''
for i in range(len(a)):
    s+=str(a[i])
    if i != len(a):
        s+=' '
print(s)

n = int(input())
c = input()
c = c.split()
c = list(map(int,c))
r = []
for i in range(200):
    t = 0
    for j in range(n):
        if (c[j] > 0):
            c[j] -= 1
            t += 1
        #print(c)
    r.append(t)
#print(r)
c2 = []
for i in range(n):
    t = 0
    for j in range(200):
        if (r[j] > 0):
            r[j] -= 1
            t += 1
        #print(r)
    c2.append(t)
c2.reverse()
for i in c2:
    print(i,end=' ')


n = input()
columns = [int(x) for x in input().split()]

for x in sorted(columns):
    print(x, end = ' ')


input()
print(' '.join(map(str, sorted(map(int, input().split())))))