n = int(input())
a = list(map(int, input().split()))
a.sort()
arr = [str(x) for x in a]
print(' '.join(arr))

07bf90e68e2fa45a917d6f9283d3b221e6eee1e0
<mask token>

<mask token>
a.sort()
<mask token>
print(' '.join(arr))

n = int(input())
a = list(map(int, input().split()))
a.sort()
arr = [str(x) for x in a]
print(' '.join(arr))
