n = int(input()) count = 0 li = list(map(str,input().split())) li1 = sorted(li)[::-1] for i in li1: print(i,end='')