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