#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector<int> a;
int main(){
int n,x;
cin >> n;
for(int i=0; i<n; i++) {
cin >> x;
a.push_back(x);
}
sort(a.rbegin(), a.rend());
for(int i=0; i<a.size(); i++)
cout << a[i] << ' ';
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgoKCXVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgp2ZWN0b3I8aW50PiBhOwoKaW50IG1haW4oKXsKCWludCBuLHg7CgljaW4gPj4gbjsKCWZvcihpbnQgaT0wOyBpPG47IGkrKykgewoJCWNpbiA+PiB4OwoJCWEucHVzaF9iYWNrKHgpOwoJfQoJc29ydChhLnJiZWdpbigpLCBhLnJlbmQoKSk7Cglmb3IoaW50IGk9MDsgaTxhLnNpemUoKTsgaSsrKQoJCWNvdXQgPDwgYVtpXSA8PCAnICc7CglyZXR1cm4gMDsKfQ==