lst1=input().split()
lst2=input()
lst3=[]
lst1.sort()
C=int(lst1[2])
B=int(lst1[1])
A=int(lst1[0])
for i in lst2:
print(int(i),end=" ")