n = int(input())
a_list = []
for i in range(0, n):
    m = int(input())
    a_list.append(m)
a_list.sort()
for i in a_list:
    print(i)

7a88cc8caa2c5d70f0be0f65171cf0a85342cbb0
<mask token>

<mask token>
for i in range(0, n):
    m = int(input())
    a_list.append(m)
a_list.sort()
for i in a_list:
    print(i)

n = int(input())
a_list = []
for i in range(0, n):
    m = int(input())
    a_list.append(m)
a_list.sort()
for i in a_list:
    print(i)
