def createDictionaly(list):
    dict = {}
    for i in range(0, len(list)):
        if (list[i] in dict):
            dict[list[i]] = dict[list[i]] + 1
        else:
            dict[list[i]] = 1
    return dict
    
def sortedKeys(dict):
    listLocal = list(dict.keys())
    listLocal.sort(reverse=True)
    return listLocal
    

######################
sizeOfMotherG = int(input())
numberInMotherG = list(map(int, input().split()))
dictG = createDictionaly(numberInMotherG)
keysG = sortedKeys(dictG)

if(len(keysG) == 1):
    stringOfNumber = str(keysG[0])
    for i in range(0, sizeOfMotherG - 1):
        stringOfNumber = stringOfNumber + " " + str(keysG[0])
    print(stringOfNumber)
else:
    sizeOfMotherG = sizeOfMotherG - 1
    lenKeysG = 1
    stringOfNumber = str(keysG[0])
    while(sizeOfMotherG != 0):
        stringOfNumber = stringOfNumber + " " + str(keysG[lenKeysG])
        lenKeysG = lenKeysG + 1
        sizeOfMotherG = sizeOfMotherG - 1
    print(stringOfNumber)