L = int(input()) N = int(input()) block = list(map(int,input().split())) block.sort() print()