#2022/6/1 20:01
n1=int(input())
n2=list(map(int,input().split()))
n3=int(input())
n2.append(n3)
n2.sort()
n4=" ".join(str(i) for i in n2)
print(n4)