num1,num2=map(int,input().split(" ")) lst=map(int,input().split(" ")) lst=sorted(lst) for i in lst: print(i,end=" ")