#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
//Function to sort the vector in descending order
void SortVector(vector<int> & myVec) {
//Using the sort function from the algorithm library and greater<int>() as a comparator
//to sort the vector in descending order
sort(myVec.begin(), myVec.end(), greater<int>());
}
int main() {
int n;
cin >> n;
//Creating an empty vector
vector<int> myVec;
for (int i = 0; i < n; i++) {
int x;
cin >> x;
//Adding integers to the vector
myVec.push_back(x);
}
//calling the sort function
SortVector(myVec);
for (int i = 0; i < n; i++) {
cout << myVec[i] << ",";
}
return 0;
}