#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int a;
cin >> a;
int* arr = new int[a];
for (int i = 0; i < a; i++){ cin >> arr[i]; }
sort(arr, arr + a);
for (int i = 0; i < a; i++){ cout << arr[i] << ' '; }
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgYTsKCWNpbiA+PiBhOwoJaW50KiBhcnIgPSBuZXcgaW50W2FdOwoJZm9yIChpbnQgaSA9IDA7IGkgPCBhOyBpKyspeyBjaW4gPj4gYXJyW2ldOyB9Cglzb3J0KGFyciwgYXJyICsgYSk7Cglmb3IgKGludCBpID0gMDsgaSA8IGE7IGkrKyl7IGNvdXQgPDwgYXJyW2ldIDw8ICcgJzsgfQp9