a = int(input())
x = list(map(int,input().split()))
x.sort()
for i in x:
    print(i,end=" ")
a291ecb36ca1578c8511f1df3a37d38a44329229
<mask token>

<mask token>
x.sort()
for i in x:
    print(i, end=' ')

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

a = int(input())
x = list(map(int,input().split()))
x.sort()
for i in x:
    print(i,end=" ")