n = int(input())
li_num = [int(input()) for _ in range(n)]
li_num.sort()
for i in li_num:
print(i)
let n = Int(readLine()!)!
var numberList: [Int] = []
for _ in 1...n {
numberList.append(Int(readLine()!)!)
}
numberList.sort()
for i in numberList {
print(i)
}