# @Author YoungMinKim
# baekjoon

import sys
N = int(sys.stdin.readline())
tmp = []
for i in range(N):
    tmp.append(int(sys.stdin.readline()))
[print(i) for i in sorted(tmp)]
ed614235e2bc4834fce138a188276535ef67684a
<mask token>

<mask token>
for i in range(N):
    tmp.append(int(sys.stdin.readline()))
[print(i) for i in sorted(tmp)]

<mask token>
N = int(sys.stdin.readline())
tmp = []
for i in range(N):
    tmp.append(int(sys.stdin.readline()))
[print(i) for i in sorted(tmp)]

import sys
N = int(sys.stdin.readline())
tmp = []
for i in range(N):
    tmp.append(int(sys.stdin.readline()))
[print(i) for i in sorted(tmp)]

# @Author YoungMinKim
# baekjoon

import sys
N = int(sys.stdin.readline())
tmp = []
for i in range(N):
    tmp.append(int(sys.stdin.readline()))
[print(i) for i in sorted(tmp)]